diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-05-22 15:57:48 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-05-23 06:47:43 +0200 |
commit | a71c960754152fb7e8094cdf6190783e609c2b58 (patch) | |
tree | 2ac4db24554f454c512f7acb64d7b833ed443580 /include | |
parent | 3af6091f45d93508ab746c13e208d9516c009222 (diff) |
Fix moving / orientation-changing ScrollBar
Just implements Move the same way then Resize. More importantly
the patch correctly resets the Thumb and Page rectangles to
position (0,0) instead of just Empty, which ImplCalc is based on.
Otherwise this results in broken scroll bars, when the StarMath
elements window is docked in in the bottom or top area and
switches the scrolling orientation on undock.
Change-Id: I32b0507cdd6551cc7f42655a730faf8ef25b747b
Reviewed-on: https://gerrit.libreoffice.org/72794
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/scrbar.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/scrbar.hxx b/include/vcl/scrbar.hxx index 8a2fffac0321..fb08f37405b6 100644 --- a/include/vcl/scrbar.hxx +++ b/include/vcl/scrbar.hxx @@ -94,6 +94,7 @@ public: virtual void KeyInput(const KeyEvent& rKEvt) override; virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override; virtual void Draw(OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawFlags nFlags) override; + virtual void Move() override; virtual void Resize() override; virtual void StateChanged(StateChangedType nType) override; virtual void DataChanged(const DataChangedEvent& rDCEvt) override; |