visbrain icon indicating copy to clipboard operation
visbrain copied to clipboard

Fix: Fixate widget location in UiSettings frame

Open TomBugnon opened this issue 4 years ago • 1 comments

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

TomBugnon avatar Feb 17 '21 14:02 TomBugnon

Wonderful! All good to me 👍

raphaelvallat avatar Feb 17 '21 18:02 raphaelvallat