lxqt / lxqt-panel

The LXQt desktop panel
https://lxqt-project.org
GNU Lesser General Public License v2.1
176 stars 135 forks source link

Task Manager plugin: buttons shifting position when opening or closing windows #2065

Open isf63 opened 1 month ago

isf63 commented 1 month ago
Current Behavior

Taskbar buttons shift slightly when opening or closing windows

Possible Solution
Steps to Reproduce (for bugs)
  1. Set Maximum button width low enough in Task Manager settings to have all buttons stay at maximum width.
  2. Open 2 to 4 windows and then open another.

There is a subtle shift in the buttons position.

Context

Minor UX issue Sometimes displayed eliding is affected

Affects all LXQt themes, except KDE-Plasma for me.

System Information
isf63 commented 1 month ago

I can confirm this is unrelated to themeing by creating a blank theme (mkdir ~/.local/share/lxqt/themes/blank; touch ~/.local/share/lxqt/themes/blank/lxqt-panel.qss, and then inspecting the button widths with GammaRay. With Maximum button width set to 200px, 2 windows open the widths are: (200, 200) and 3 windows (200, 201, 200).

tsujan commented 1 month ago

Yes, that may be a sign of a small miscalculation somewhere. It isn't easy to find where but, fortunately, it hasn't had a serious side effect.