diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-06-09 15:08:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-06-09 20:52:44 +0200 |
commit | fcd898c60093eeb5e81f8dc312edc768107c9380 (patch) | |
tree | d1691d732a725aa6c950968207fba2609be13756 /vcl/unx | |
parent | 6db6163dad0d8ac21ba69b2e361034b06f0a5a30 (diff) |
tdf#133822 mirror GtkSalObjectWidgetClip location for RTL
Change-Id: I4ab4a0fb8fc343ee9a4c66c58e20583482958f37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95951
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkobject.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkobject.cxx b/vcl/unx/gtk3/gtk3gtkobject.cxx index 219805daed49..cb60406ec0e0 100644 --- a/vcl/unx/gtk3/gtk3gtkobject.cxx +++ b/vcl/unx/gtk3/gtk3gtkobject.cxx @@ -359,7 +359,14 @@ void GtkSalObjectWidgetClip::ApplyClipRegion() allocation.height = m_aClipRect.GetHeight(); } - gtk_fixed_move(pContainer, m_pScrolledWindow, allocation.x, allocation.y); + if (AllSettings::GetLayoutRTL()) + { + GtkAllocation aParentAllocation; + gtk_widget_get_allocation(GTK_WIDGET(pContainer), &aParentAllocation); + gtk_fixed_move(pContainer, m_pScrolledWindow, aParentAllocation.width - allocation.width - 1 - allocation.x, allocation.y); + } + else + gtk_fixed_move(pContainer, m_pScrolledWindow, allocation.x, allocation.y); gtk_widget_set_size_request(m_pScrolledWindow, allocation.width, allocation.height); gtk_widget_size_allocate(m_pScrolledWindow, &allocation); |