Bug 79655 - RTL: Dragging toolbars from the left edge of titlebar causes toolbar to dock on right side rather than left
Summary: RTL: Dragging toolbars from the left edge of titlebar causes toolbar to dock ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Toolbars RTL-UI
  Show dependency treegraph
 
Reported: 2014-06-04 22:31 UTC by Yousuf Philips (jay) (retired)
Modified: 2023-12-10 08:35 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
how the drag looks in RTL (100.07 KB, image/png)
2014-06-04 22:31 UTC, Yousuf Philips (jay) (retired)
Details
shows how it looks when dragging from both ends (135.65 KB, image/png)
2014-09-26 21:00 UTC, Yousuf Philips (jay) (retired)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2014-06-04 22:31:32 UTC
Created attachment 100423 [details]
how the drag looks in RTL

When i drag a toolbar when i'm in a RTL language like Arabic to fill the empty space on the left side of the screen it puts the toolbar on the right side.
Comment 1 tommy27 2014-09-26 19:49:40 UTC
are you still seiing this in 4.3.2.2?
Comment 2 Yousuf Philips (jay) (retired) 2014-09-26 20:52:00 UTC
Did some testing on 4.3.3 with the arabic UI and compared it with the behaviour of the english UI and noticed where the problem happen.

Steps:
1) Open writer in english UI
2) Open the drawing toolbar
3) Drag the toolbar to make it floating
4) Drag the toolbar from one end then the other end and see how the gray checkered rectangle border place holder appears before dropping it.

Behaviour: If you drag the toolbar from the left side close to the toolbar title, the rectangle that appears fills up the empty space. If you drag the toolbar from the right side close to the down arrow and the close button, the rectangle that appears takes up the full size of the toolbar.

With the arabic UI, when you drag from the toolbar title, it works correctly, but when you drag from the close button, it seems its not taking into consideration that the toolbar is RTL and places the toolbar in the same location that it would if the interface was LTR. I tested this on Windows as well and it happens there as well.
Comment 3 Yousuf Philips (jay) (retired) 2014-09-26 21:00:52 UTC
Created attachment 106935 [details]
shows how it looks when dragging from both ends
Comment 4 Ibrahim 2014-10-08 16:14:32 UTC
Confirmed on Windows 7 64Bit.

Version: 4.3.0.4
Build ID: 62ad5818884a2fc2e5780dd45466868d41009ec0
Comment 5 Abdulaziz Ayed 2014-10-21 07:56:05 UTC
Confirmed on Ubuntu 14.04LTS 64Bit.

Version: 4.4.0.0 alpha+
Build ID: e2723d00b77dc1044e2ba599ba93517af34e1ea5
Comment 6 QA Administrators 2015-12-20 16:11:07 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2017-01-03 19:47:37 UTC Comment hidden (obsolete)
Comment 8 Yousuf Philips (jay) (retired) 2017-10-02 09:28:28 UTC
Still present in both Arabic and Hebrew UIs.

Version: 5.4.3.0.0+
Build ID: fb64cf127dc6398f5d18d186a93966837db0bb1e
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-4, Time: 2017-09-27_12:54:32
Locale: en-US (en_US.UTF-8); Calc: group
Comment 9 QA Administrators 2018-10-03 02:54:34 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2021-12-28 07:00:38 UTC Comment hidden (obsolete)
Comment 11 Stéphane Guillou (stragu) 2023-12-10 08:27:31 UTC
Reproduced in:

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 0ddd9f7e055a0c1ecb120de3e40c3fdb8373e9dc
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Even worse than before, as the x coordinates seem completely inverted now, whereas it would drop to the correct position if not hovering over the end of the empty space in earlier versions.

I had to force xWayland to circumvent the current Wayland docking issues:

GDK_BACKEND=x11 SAL_RTL_ENABLED=1 libreofficedev24.2
Comment 12 Stéphane Guillou (stragu) 2023-12-10 08:35:32 UTC
(In reply to Stéphane Guillou (stragu) from comment #11)
> Even worse than before, as the x coordinates seem completely inverted now,
Actually, also reproducing this same "inverted coordinate" behaviour in OOo 3.3 and 5.4, not sure what the difference I saw came from.