-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task Manager plugin: buttons shifting position when opening or closing windows #2065
Comments
I can confirm this is unrelated to themeing by creating a blank theme ( |
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. |
Related to #2083 indirectly. |
My wild guess is that, in some line(s) of code, the special property of QRect::right() (see Qt doc's note) may have been ignored, resulting in a one-pixel miscalculation. I already found and fixed one case, but it wasn't related to this report. |
OK, the problem wasn't in lxqt-panel but in liblxqt → I should check those calculations several times to make sure that I haven't missed anything. Then I'll make a PR. But in short, for a reason unknown to me, an extra one pixel was added in some places without being considered in others. I just removed it for testing. |
With a horizontal layout, the item width was increased by one pixel when there was empty space, but that one pixel wasn't taken into account anywhere else — and similarly with a vertical layout. I removed it, and the occasional position shifts disappeared from task buttons of lxqt-panel. In short, the original calculations inside `GridLayout::setGeometry` didn't seem correct to me. Fixes lxqt/lxqt-panel#2065
@isf63 |
With a horizontal layout, the item width was increased by one pixel when there was empty space, but that one pixel wasn't taken into account anywhere else — and similarly with a vertical layout. I removed it, and the occasional position shifts disappeared from task buttons of lxqt-panel. In short, the original calculations inside `GridLayout::setGeometry` didn't seem correct to me. Fixes lxqt/lxqt-panel#2065
Current Behavior
Taskbar buttons shift slightly when opening or closing windows
Possible Solution
Steps to Reproduce (for bugs)
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
The text was updated successfully, but these errors were encountered: