summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-02 14:34:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-02 20:23:03 +0200
commit8d84d3800065b0c2d25479b84575da6906c035fc (patch)
treeee42f1fda212a207a0281e63a3e9e197e030f0e1 /dbaccess/source
parent782f4a674c0695a31591afa5cad656a7f8ca737a (diff)
Do layout immediately in resize
the wait for the idle is too long, keep idle for re-layout when the container size doesnt change but the contents do Change-Id: I6ed4806e96d10937e825192de86a3d602acf1689 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101943 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/inc/TableDesignView.hxx2
-rw-r--r--dbaccess/source/ui/tabledesign/TableDesignView.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/inc/TableDesignView.hxx b/dbaccess/source/ui/inc/TableDesignView.hxx
index aa1c88e4bcaf..b845a3e8e9e5 100644
--- a/dbaccess/source/ui/inc/TableDesignView.hxx
+++ b/dbaccess/source/ui/inc/TableDesignView.hxx
@@ -48,7 +48,7 @@ namespace dbaui
virtual void dispose() override;
virtual void GetFocus() override;
- virtual void IdleResize() override;
+ virtual void Layout() override;
OTableEditorCtrl* GetEditorCtrl() const { return m_xEditorCtrl.get(); }
OTableFieldDescWin* GetDescWin() const { return m_xFieldDescWin.get(); }
diff --git a/dbaccess/source/ui/tabledesign/TableDesignView.cxx b/dbaccess/source/ui/tabledesign/TableDesignView.cxx
index ae32e9706302..bb2657f91a6f 100644
--- a/dbaccess/source/ui/tabledesign/TableDesignView.cxx
+++ b/dbaccess/source/ui/tabledesign/TableDesignView.cxx
@@ -72,7 +72,7 @@ void OTableBorderWindow::dispose()
InterimItemWindow::dispose();
}
-void OTableBorderWindow::IdleResize()
+void OTableBorderWindow::Layout()
{
// dimensions of parent window
auto nOutputHeight = GetSizePixel().Height();
@@ -88,7 +88,7 @@ void OTableBorderWindow::IdleResize()
// set splitter
m_xHorzSplitter->set_position(nSplitPos);
- InterimItemWindow::IdleResize();
+ InterimItemWindow::Layout();
if (nOldSplitPos != nSplitPos)
m_xHorzSplitter->set_position(nSplitPos);