Bug 148870

Summary: Comments on RTL sheet are off the right edge of the screen
Product: LibreOffice Reporter: greenblatt777
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: 79045_79045, eyalroz1, ilmari.lauhakangas, raal
Priority: medium    
Version: 3.5.0 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 43808, 101216    
Attachments: we see yellow comment window
here no yellow window appears

Description greenblatt777 2022-04-30 22:24:08 UTC
To Reproduce:
1. Change Windows system language to Hebrew, so that Add Sheets creates RTL sheets.
2. File -> New -> Spreadsheet. Sheet will be RTL. Click plus sign at bottom to add sheet.
3. While still in Sheet2, select a cell.
4. Ctrl+Alt+C to add a comment.

Expected Behavior: Yellow pop-up window to add comment.
Actual Behavior:  Yellow pop-up window is off screen.

Only appears on second or higher sheet. Only appears on sheets that are created as RTL, not LTR sheets that are later changed to RTL.
Bug disappears when RTL sheet is changed to LTR, then back to RTL.
Comment 1 Eyal Rozenberg 2022-10-24 22:00:03 UTC
Can you attach a screenshot of this happening?
Comment 2 Eyal Rozenberg 2022-10-24 22:00:22 UTC
Also, which version of LibreOffice are you running?
Comment 3 greenblatt777 2022-10-24 23:11:07 UTC
Created attachment 183245 [details]
we see yellow comment window

this is regular behavior.
Comment 4 greenblatt777 2022-10-24 23:12:21 UTC
Created attachment 183246 [details]
here no yellow window appears

this is in second sheet, when sheet is right to left
Comment 5 greenblatt777 2022-10-24 23:24:22 UTC
I am using LO 7.4.2.3 build 382eef1f22670f7f4118c8c2dd222ec7ad009daf Windows 10 x64. Bug is alive and well. No yellow comment window. I don't know why i said it was off screen - i just don't see it at all. 
To see the bug, make sure you set tools -> options -> language settings -> languages -> locale setting ->  עברית / Hebrew. Then restart LO to see sheet in RTL. Follow steps above - the bug only appears on second or higher sheet.
Could someone check Arabic? i can't because i'd get lost in the menus.
Comment 6 Buovjaga 2023-02-23 09:18:17 UTC
Step 1 can be Tools - Options - Language Settings - Languages - Locale setting: Hebrew

For me, the comment is invisible while writing, but does show when hovering over the indicator.

Same on Win and Linux. Tested with Linux all the way to 3.5.0.

As this does not require an RTL UI, I will change one of the meta bugs.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: e4fb37353e2f9f998c028319c5fa083bf3eaa4cc
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: he-IL (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 23 February 2023