From 9533249c5a905e123ee041f884ca2ea20e92474b Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Sun, 8 Dec 2019 12:36:58 -0500 Subject: sidebar: sensible line and page sizes and invalidate Change-Id: Icf60480a47d7c93bad44f6457bb05af332e63c6d Reviewed-on: https://gerrit.libreoffice.org/84718 Tested-by: Jenkins CollaboraOffice Reviewed-by: Ashod Nakashian --- sfx2/source/sidebar/Deck.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index efc2658c453e..110e331065ff 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -97,6 +97,8 @@ Deck::Deck(const DeckDescriptor& rDeckDescriptor, vcl::Window* pParentWindow, mpScrollContainer->Show(); mpVerticalScrollBar->SetScrollHdl(LINK(this, Deck, HandleVerticalScrollBarChange)); + mpVerticalScrollBar->SetLineSize(10); + mpVerticalScrollBar->SetPageSize(100); if (comphelper::LibreOfficeKit::isActive()) { @@ -444,6 +446,7 @@ IMPL_LINK_NOARG(Deck, HandleVerticalScrollBarChange, ScrollBar*, void) const sal_Int32 nYOffset (-mpVerticalScrollBar->GetThumbPos()); mpScrollContainer->SetPosPixel(Point(mpScrollContainer->GetPosPixel().X(), nYOffset)); + mpScrollContainer->Invalidate(); } //----- Deck::ScrollContainerWindow ------------------------------------------- -- cgit v1.2.3