Skip to content

Fix: Fixate widget location in UiSettings frame#89

Open
TomBugnon wants to merge 1 commit intoEtienneCmb:masterfrom
TomBugnon:fix_settings
Open

Fix: Fixate widget location in UiSettings frame#89
TomBugnon wants to merge 1 commit intoEtienneCmb:masterfrom
TomBugnon:fix_settings

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.

2 participants