[Libreoffice-commits] core.git: svtools/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Jan 21 09:13:23 UTC 2021


 svtools/source/brwbox/brwbox1.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 520058bbe9735da18a24986c6e0db59fc2c04415
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jan 20 17:14:36 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jan 21 10:12:41 2021 +0100

    keep the navigation bar control area the same size with hidden scrollbar
    
    which is the way it historically worked before...
    
    commit 7fd9bd4cdf4ffc03b2280964ef3f7e5917769bbd
    Author: Caolán McNamara <caolanm at redhat.com>
    Date:   Mon Jul 27 11:43:12 2020 +0100
    
        we want the position of the start of the scrollbar
    
    which added a visibility check that we don't actually want as the
    navigation bar spreads out in a ugly manner on a gridcontrol with
    only a few columns
    
    Change-Id: I9f24937c20dbab40e0d031195aa6e3e527cd52f6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109721
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index b51b29cc91ad..7fbb0d08797f 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -2119,7 +2119,7 @@ bool BrowseBox::ReserveControlArea(sal_uInt16 nWidth)
 tools::Rectangle BrowseBox::GetControlArea() const
 {
     auto nHeight = aHScroll->GetSizePixel().Height();
-    auto nEndRight = aHScroll->IsVisible() ? aHScroll->GetPosPixel().X() : GetOutputSizePixel().Width();
+    auto nEndRight = aHScroll->GetPosPixel().X();
 
     return tools::Rectangle(
         Point( 0, GetOutputSizePixel().Height() - nHeight ),


More information about the Libreoffice-commits mailing list