Bug 518451 - Activity Bar: Graphics work only as intended at panel height = 38.
Summary: Activity Bar: Graphics work only as intended at panel height = 38.
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Pager widget (other bugs)
Version First Reported In: 6.6.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-02 18:20 UTC by Ritvik
Modified: 2026-04-11 12:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.6.4
Sentry Crash Report:


Attachments
Video footage of the bug (487.73 KB, video/webm)
2026-04-02 18:20 UTC, Ritvik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ritvik 2026-04-02 18:20:48 UTC
Created attachment 191219 [details]
Video footage of the bug

SUMMARY
Graphics work only as intended at panel height = 38.
It clips out of Border at smaller heights and sticks to the top at larger heights
(Check attachment for video footage of the bug)

STEPS TO REPRODUCE
1. Enable Activities
2. Enable the Widget "Activity Bar"
3. Change Panel Height

OBSERVED RESULT
Widget clips out of panel or sticks to the top

EXPECTED RESULT
Widget resizes to fit the panel at all heights

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.6.2
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
Kernel Version: 6.19.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® N100
Memory: 16 GiB of RAM (15.4 GiB usable)
Graphics Processor: Intel® Graphics
Comment 1 Bug Janitor Service 2026-04-03 13:49:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6466
Comment 2 Marco Martin 2026-04-07 14:14:28 UTC
Git commit bbd65d8c4f9a59ca5a2063c2c2119479e83071c7 by Marco Martin.
Committed on 07/04/2026 at 14:14.
Pushed by mart into branch 'master'.

applets/activitybar: fix layout on narrow panels

### Reason for the change
The PlasmaComponents TabBar bases its size hints on top of margins
coming from the Svg theme, and this is fine when is the tabbar that
specifies the size of its layout, such as in kickoff or in the calendar,
where it has space to become as tall as it wants.
activitybar which is in the panel it might be constrained to an height
much smaller that that and is the panel dictating its height, not the
other way around.
In this case the layouting breaks in 2 paces:
the top/bottom padding needs to become much smaller, otherwise the text
gets pushed out og the way.
the other thing pushing the text out of the way is the internal
layouting code of the TabBar template which attempts to center
vertically things based on a contentHeight which might not be correct,
since we use a ListView instead of a simple layout for the buttons

### Test plan

Now the panel can be resize to be very narrow and the text will always be properly centered

### Screenshots or screen recordings

| Before | After |
| ------ | ----- |
| ![image](/uploads/694091406e01f7f99806fde0711561e1/image.png){width=192 height=39} | ![image](/uploads/30bc4eda81f6bebd9b89ef7fcaeac44f/image.png){width=184 height=47} |


### Bugs fixed

M  +8    -0    applets/activitybar/qml/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/bbd65d8c4f9a59ca5a2063c2c2119479e83071c7
Comment 3 Marco Martin 2026-04-07 14:15:47 UTC
Git commit b94926f6c4ff7e6f2398876bcf23ce74cc5cc44e by Marco Martin.
Committed on 07/04/2026 at 14:14.
Pushed by mart into branch 'Plasma/6.6'.

applets/activitybar: fix layout on narrow panels

### Reason for the change
The PlasmaComponents TabBar bases its size hints on top of margins
coming from the Svg theme, and this is fine when is the tabbar that
specifies the size of its layout, such as in kickoff or in the calendar,
where it has space to become as tall as it wants.
activitybar which is in the panel it might be constrained to an height
much smaller that that and is the panel dictating its height, not the
other way around.
In this case the layouting breaks in 2 paces:
the top/bottom padding needs to become much smaller, otherwise the text
gets pushed out og the way.
the other thing pushing the text out of the way is the internal
layouting code of the TabBar template which attempts to center
vertically things based on a contentHeight which might not be correct,
since we use a ListView instead of a simple layout for the buttons

### Test plan

Now the panel can be resize to be very narrow and the text will always be properly centered

### Screenshots or screen recordings

| Before | After |
| ------ | ----- |
| ![image](/uploads/694091406e01f7f99806fde0711561e1/image.png){width=192 height=39} | ![image](/uploads/30bc4eda81f6bebd9b89ef7fcaeac44f/image.png){width=184 height=47} |


### Bugs fixed


(cherry picked from commit bbd65d8c4f9a59ca5a2063c2c2119479e83071c7)

52051b47 applets/activitybar: fix layout on narrow panels

Co-authored-by: Marco Martin <notmart@gmail.com>

M  +8    -0    applets/activitybar/qml/main.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/b94926f6c4ff7e6f2398876bcf23ce74cc5cc44e