EtienneCmb / visbrain

A multi-purpose GPU-accelerated open-source suite for brain data visualization
http://visbrain.org
Other
241 stars 64 forks source link

Fix: Fixate widget location in UiSettings frame #89

Open TomBugnon opened 3 years ago

TomBugnon commented 3 years ago

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 commented 3 years ago

Wonderful! All good to me 👍