From 2eff56af224f57aafac232bee1e63bfc29986b42 Mon Sep 17 00:00:00 2001 From: Artur Drozdz Date: Sat, 4 Jan 2020 11:11:03 +0100 Subject: [PATCH] Taking hidden columns into account when calculating Editor position --- src/dashboard/Data/Browser/BrowserTable.react.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dashboard/Data/Browser/BrowserTable.react.js b/src/dashboard/Data/Browser/BrowserTable.react.js index 4b5b95255f..a92d6bad45 100644 --- a/src/dashboard/Data/Browser/BrowserTable.react.js +++ b/src/dashboard/Data/Browser/BrowserTable.react.js @@ -219,7 +219,8 @@ export default class BrowserTable extends React.Component { } let wrapLeft = 30; for (let i = 0; i < this.props.current.col; i++) { - wrapLeft += this.props.order[i].width; + const column = this.props.order[i]; + wrapLeft += column.visible ? column.width : 0; } if (!this.props.isUnique) { editor = (