Skip to content
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

Fix: Fixate widget location in UiSettings frame #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TomBugnon
Copy link
Collaborator

Issue

When scrolling through data with the slider or using the Go To widget, the Settings frame size changes due to the varying length of the first row's text (Window : [...] || Scoring ...), which makes all the widgets in the panel move around a bit.

This forces the user to move the mouse before being able to click again on one of the widgets, or may resulte in slight forward scroll in the data when the user tries to backward scroll with the slider. (which are both annoying)

image

Fix

Use QGridLayout.addStretch rather than QGridLayout.addItem(QSpacerItem) to space items in the grid's first row

With this update, the widgets in the settings bar keep fixed locations during scrolling

@raphaelvallat
Copy link
Collaborator

Wonderful! All good to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants