Bug 473372

Summary: After showing the tab with scrollbar, another tab that does not need it, keeps showing it
Product: [Applications] systemsettings Reporter: Andrew Shark <ashark>
Component: kcm_keyboardAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: butirsky, nate
Priority: NOR    
Version First Reported In: 5.27.7   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Demonstrate that scrollbars is shown when it is not wanted

Description Andrew Shark 2023-08-14 14:56:57 UTC
Created attachment 160953 [details]
Demonstrate that scrollbars is shown when it is not wanted

In System Settings in the Keyboard KCM, the horizontal scrollbar remains showing after switching to the tab that does not need to show it, from the tab that showed it.

STEPS TO REPRODUCE
1. Open System Settings and go to Input Devices -> Keyboard.
2. Go to the "Layouts" tab.
3. Make sure it has horizontal scrollbar. If it has not, resize the window to reduce its width.
4. Open some another KCM in current window, for example, go to Input Devices -> Mouse.
5. Go back to Input Devices -> Keyboard. The "Hardware" tab is opened. You can see there is no horizontal scrollbar.
6. Switch to "Advanced" tab. You can see there is no horizontal scrollbar.
7. Switch to "Layouts" tab. You can see that horizontal scrollbar appeared.
8. Switch to any other tab ("Hardware" or "Advanced").

OBSERVED RESULT
You see that there horizontal scrollbar is still shown at the bottom. And the content is stretched to its width.

EXPECTED RESULT
At step 8 the horizontal scrollbars should be hidden, just like when you opened the tab for the first time (at steps 5 and 6).

See included video.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Graphics Platform: Wayland