Bug 139252 - Comments aligned-left despite sheet, page style & comment direction being RTL
Summary: Comments aligned-left despite sheet, page style & comment direction being RTL
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: RTL-CTL
  Show dependency treegraph
 
Reported: 2020-12-27 09:50 UTC by Eyal Rozenberg
Modified: 2023-11-09 10:28 UTC (History)
0 users

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 Eyal Rozenberg 2020-12-27 09:50:09 UTC
Description:
By default, cell text has "Default" alignment. However, new comments seem to be created in Left alignment.

I'm not sure how wise that is generally, but certainly this should not be the case when "everything" is RTL rather than LTR.

Steps to Reproduce:
1. Create a new spreadsheet
2. Set the Default Page Style's direction to RTL
3. Set the Sheet direction to RTL
4. Place cursor on some cell (note that cell direction is RTL)
5. Create new comment


Actual Results:
Comment alignment is Left

Expected Results:
Well, this is tricky. Let's say that, at least, the comment alignment should be Right.


Reproducible: Always


User Profile Reset: No



Additional Info:
The alignment should be "Start" - but for that to happen, bug 131192 needs to be resolved.

It's an interesting question what should happen when the page style, the cell direction and sheet direction don't agree. There should be a clear and reasonable logic for choosing the default direction of a comment.

Also, I'm not at all sure the comment alignment shouldn't just be Default.
Comment 1 eladhen2 2020-12-27 10:03:27 UTC
Reproduced on LO 6.3.6.2
Comment 2 Eyal Rozenberg 2020-12-27 11:43:35 UTC
To clarify:

This bug report is _not_ about the direction of new comments (RTL vs LTR). The direction in my reproduction instructions is RTL, which is fine. 

This bug report is about the _alignment_ of new comments.
Comment 3 Sophie Sipasseuth 2023-11-09 10:09:52 UTC
Still repro with:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 486ae5db6987411d5e394de94b2b077099d03856
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: threaded
Comment 4 Sophie Sipasseuth 2023-11-09 10:23:33 UTC
Repro:

Version: 6.4.0.0.alpha1+ (x64)
Build ID: 9bc848cf0d301aa57eabcffa101a1cf87bad6470
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: GL; VCL: win; 
Locale: fr-FR (fr_FR); UI-Language: en-US
Calc: threaded
Comment 5 Sophie Sipasseuth 2023-11-09 10:28:41 UTC
Repro:

Version: 5.4.0.0.alpha1+
Build ID: 9feb7f7039a3b59974cbf266922177e961a52dd1
CPU threads: 8; OS: Windows 6.19; UI render: GL; 
Locale: fr-FR (fr_FR); Calc: group