Bug 150800 - Improve change of vertical scrollbar from left to right, if support for asian languages is not enabled
Summary: Improve change of vertical scrollbar from left to right, if support for asian...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillCpp, topicUI
Depends on:
Blocks: Scrollbars
  Show dependency treegraph
 
Reported: 2022-09-05 15:48 UTC by Dieter
Modified: 2022-11-17 08:00 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dieter 2022-09-05 15:48:45 UTC
Steps:
1. Open writer with vertical scrollbar on the left
2. Tools -> Language Settings -> Languages -> Enable "Asian" in "Default Languages for Documents" -> Press O.K.
3. Tools -> LibreOffice Writer -> View -> activate vertical ruler and right aligned -> Presse O.K. => Scrollbar jumps to the left
4. Tools -> Language Settings -> Languages -> Disable "Asian" in "Default Languages for Documents" -> Press O.K.
5. View -> Rulers -> deselect vertical ruler

Actual result:
Vertical scrollbar is on the left and you find no option to change it to the left

Expected result:
Some option to change scrollbar to the right (without detour through language settings)
Comment 1 Regina Henschel 2022-09-05 17:10:51 UTC
The scrollbar is at the opposite side of the ruler. So when you set the ruler to the right, the scrollbar will be left.

In Writer it is possible to set the position of the ruler. That is in Tools > Options > Writer > View. A similar setting would be useful in Draw/Impress to. If this setting is indeed not enabled in all cases, that should be changed.
Comment 2 Dieter 2022-09-05 17:22:06 UTC
(In reply to Regina Henschel from comment #1)
> If this setting is indeed not enabled in all cases, that should be
> changed..

So solution would be: "Right-aligned" option schould always be visible. Perhaps we can rename it to "Right-aligned (Scrollbar left)" to indicate that it also affects scrollbar position. If that's not possible from UI-perspective, would be nice to add information to help page.
Comment 3 Heiko Tietze 2022-09-06 08:17:09 UTC Comment hidden (obsolete)
Comment 4 Regina Henschel 2022-09-06 10:35:13 UTC
Left-handed users may also be interested in having the scrollbar on the left side. So not a pure language dependent problem.
Comment 5 Heiko Tietze 2022-09-06 10:51:07 UTC
(In reply to Regina Henschel from comment #4)
> Left-handed users may also be interested in having the scrollbar on the left...

Good point. So let's just have this option enabled all the time. And name it "Right-aligned (Scrollbar left)".

Code pointer:

The checkbox label is at sw/uiconfig/swriter/ui/viewoptionspage.ui accessed in sw/source/ui/config/optpage.cxx where     

if(!SvtCJKOptions::IsVerticalTextEnabled() )
   m_xVRulerRightCBox->hide();

needs to be removed.
Comment 6 Heiko Tietze 2022-09-06 10:54:00 UTC
Ideally we split the scrollbar position from the ruler position with radio buttons

Scrollbar position:
(o) Opposite side to the ruler
( ) Always left
( ) Always right

By doing so we can show the scrollbar left-hand for the lefties without the need to show a ruler. Drawback of this solution is that we potentially stack ruler and scrollbar.
Comment 7 ⁨خالد حسني⁩ 2022-09-06 20:00:43 UTC Comment hidden (obsolete)
Comment 8 Hossein 2022-09-07 08:09:18 UTC
(In reply to خالد حسني from comment #7)
> (In reply to Heiko Tietze from comment #3)
> > To rephrase the STR: The option "right-aligned" under Tools > Options >
> > Writer > View is visible only when CJK/CTL are enabled under Language
> > Settings, making it hard to find if users play around with these options.
> > And you suggest to always show it, ideally with an improved label.
> > 
> > There are good reasons to hide options depending on CJK/CTL. And
> > alternatively we could just switch it off before hiding it. Or we bind the
> > scrollbar position to the page style's text direction (and remove the option
> > completely), which might OTOH lead to a jumping UI if the text switches from
> > RTL to LTR on some PgS. Guess it's a rare thing. 
> > 
> > Khaled, Hossein: What do you think?
> 
> The default should depend on the UI direction, not the document direction.
> In RTL UI most element positions are mirrored, and so should be the
> scrollbar. The CTL/Asian stuff should have no effect on this.

Yes. When using LibreOffice in RTL mode, I expect that the scrollbar goes to the opposite direction.

export SAL_RTL_ENABLED=1

This is what is happening right now, and it is also what is done in MS Word.

On the other hand, I think making this option always visible is useful. For example, I enabled this option, then disabled the Asian languages support. After that, the option was still active, but I had no way to understand and change this behavior. This is also the argument of the bug reporter to ask for making this option always visible, and I agree with him.