diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-02 14:34:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-02 20:23:03 +0200 |
commit | 8d84d3800065b0c2d25479b84575da6906c035fc (patch) | |
tree | ee42f1fda212a207a0281e63a3e9e197e030f0e1 /include | |
parent | 782f4a674c0695a31591afa5cad656a7f8ca737a (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 'include')
-rw-r--r-- | include/vcl/InterimItemWindow.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/InterimItemWindow.hxx b/include/vcl/InterimItemWindow.hxx index 6e406f41f67e..d6b47d33cade 100644 --- a/include/vcl/InterimItemWindow.hxx +++ b/include/vcl/InterimItemWindow.hxx @@ -45,7 +45,7 @@ protected: // returns true if keystroke is consumed bool ChildKeyInput(const KeyEvent& rKEvt); - virtual void IdleResize(); + virtual void Layout(); std::unique_ptr<weld::Builder> m_xBuilder; VclPtr<vcl::Window> m_xVclContentArea; @@ -57,7 +57,7 @@ private: void StartIdleLayout(); - DECL_LINK(DoResize, Timer*, void); + DECL_LINK(DoLayout, Timer*, void); virtual void ImplPaintToDevice(::OutputDevice* pTargetOutDev, const Point& rPos) override; }; |