summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdulaziz A Alayed <aalayed@kacst.edu.sa>2013-01-22 11:43:30 +0300
committerCaolán McNamara <caolanm@redhat.com>2013-01-23 10:37:41 +0000
commite8e82bd2109b82ddd535cdac30303249c6b62942 (patch)
tree884b8855fa32d82a7e088ec971137483113322b7
parent409de33c5739db45b896935c79eba40b68e106ec (diff)
fdo#44582 fixing horizontal scroll bar in sub windows
Change-Id: Ifea57dec77c5b23771684a1e46267f8431478075 Reviewed-on: https://gerrit.libreoffice.org/1806 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 736834ac2a22..e15fbfaefcdf 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -1041,7 +1041,12 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType,
rNativeContentRegion.Right() = rNativeContentRegion.Left() + 1;
if (!rNativeContentRegion.GetHeight())
rNativeContentRegion.Bottom() = rNativeContentRegion.Top() + 1;
- returnVal = sal_True;
+
+ returnVal = true;
+
+ //See fdo#44582, Horizontal scrollbar in navigator window is broken
+ if ((nPart==PART_BUTTON_LEFT || nPart==PART_BUTTON_RIGHT) && Application::GetSettings().GetLayoutRTL())
+ returnVal = false;
}
if( (nType == CTRL_MENUBAR) && (nPart == PART_ENTIRE_CONTROL) )
{