Bug 464688 - Popup menu appear on the wrong side with a reversed layout
Summary: Popup menu appear on the wrong side with a reversed layout
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_autostart (show other bugs)
Version: 5.26.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Nicolas Fella
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2023-01-23 13:25 UTC by Amr K.
Modified: 2023-07-25 16:03 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0
Sentry Crash Report:


Attachments
A screenshot visualizing the issue, with English labels (173.03 KB, image/png)
2023-01-23 13:25 UTC, Amr K.
Details
bug happening on KDE Neon (40.63 KB, image/jpeg)
2023-01-23 13:34 UTC, Muhammed Hanny Sabbagh
Details
The bug doesn't show when using the command `kcmshell5 kcm_autostart --reverse` (51.33 KB, image/png)
2023-01-25 07:13 UTC, Amr K.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amr K. 2023-01-23 13:25:29 UTC
Created attachment 155527 [details]
A screenshot visualizing the issue, with English labels

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

Some menus appear on the left despite the layout set to RTL, here's an example from the system settings app.

STEPS TO REPRODUCE
1. Open the system settings
2. Navigate to `Startup` -> `Autostart`
3. Click `Add` button

OBSERVED RESULT

Menu opens on the left, far from button's position

EXPECTED RESULT

It should appear above the `Add` button.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch linux
(available in About System)
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Muhammed Hanny Sabbagh 2023-01-23 13:34:52 UTC
Created attachment 155528 [details]
bug happening on KDE Neon

Hello.

I can confirm that I have the same bug here on KDE Neon too (KDE 5.26.5, KDE Frameworks 5.102.0, Qt 5.15.8). It happens when system language is set to Arabic.

I am not sure on what could be the reason for this, though.
Comment 2 Nate Graham 2023-01-24 19:05:05 UTC
Can confirm, reproducible with `kcmshell5 kcm_autostart --reverse`.
Comment 3 Amr K. 2023-01-25 07:13:41 UTC
Created attachment 155602 [details]
The bug doesn't show when using the command `kcmshell5 kcm_autostart --reverse`

(In reply to Nate Graham from comment #2)
> Can confirm, reproducible with `kcmshell5 kcm_autostart --reverse`.

Weird!
I ran that command and it looks like the bug disappears!
It only appear when I manually navigate to the autostart compnent from system settings!
Comment 4 Bug Janitor Service 2023-07-25 13:14:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3106
Comment 5 Nate Graham 2023-07-25 16:02:33 UTC
Git commit 1c6fa6237c817cb80d56df5c0a31d0ca18a23e5f by Nate Graham, on behalf of Thenujan Sandramohan.
Committed on 25/07/2023 at 18:02.
Pushed by ngraham into branch 'master'.

kcm/autostart: Fix reverse layout Menu popup position

Set the x value of popup menu to position it in reverse layout correctly.
FIXED-IN: 5.27.7

M  +1    -0    kcms/autostart/ui/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/1c6fa6237c817cb80d56df5c0a31d0ca18a23e5f