Skip to content

Commit c35873c

Browse files
404-htmldavimacedo
andauthored
Taking hidden columns into account when calculating Editor position (#1438)
Co-authored-by: Antonio Davi Macedo Coelho de Castro <[email protected]>
1 parent 915ed5f commit c35873c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dashboard/Data/Browser/BrowserTable.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ export default class BrowserTable extends React.Component {
221221
}
222222
let wrapLeft = 30;
223223
for (let i = 0; i < this.props.current.col; i++) {
224-
wrapLeft += this.props.order[i].width;
224+
const column = this.props.order[i];
225+
wrapLeft += column.visible ? column.width : 0;
225226
}
226227
if (!this.props.isUnique) {
227228
editor = (

0 commit comments

Comments
 (0)