astroDimitrios / rose

:rose: Rose is a toolkit for writing, editing and running application configurations.
https://metomi.github.io/rose/
GNU General Public License v3.0
0 stars 1 forks source link

Array and spaced list not holding focus when you add an array element #36

Closed astroDimitrios closed 1 month ago

astroDimitrios commented 2 months ago

This happens when you add and sometimes remove an element from the Python/Spaced list types. The array types as well the screen focus seems to jump around.

image image After: image

The focus shifts up so the variable widget is just off the bottom of the screen.

astroDimitrios commented 1 month ago

The default behaviour is somewhere in the grab_focus() gtk/pygobject line of the python_list.py and associated files. There doesn't seem to be a way to turn this off or change the signal so we've added in a force_scroll signal when you focus on the new entry widget so it moves to the top of the screen instead of off the screen. 7363a43