You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
When clicking the 'Apply' button in the 'Function properties' dialogue then the expand state and the scroll state of the 'Model objects' pane is lost.
The 'Model objects' pane scroll state is scrolled to the top, and any branch that has ever been expanded since the model was opened is expanded, even if it was not expanded at the time of clicking the 'Apply' button.
How to reproduce
In a model with several schema and many functions so that the objects in the 'Model objects' pane can be scrolled do the following:
Expand a schema (schema1) at the top of the 'Model objects' pane.
Expand the function section of the expanded schema (schema1).
Collapse the expanded schema (schema1).
Expand another schema (schema2) lower down than the previously expanded schema.
Expand the functions of the currently expanded schema (schema2).
Scroll down in the 'Model objects' pane.
Open the 'Function properties' dialogue of a function in the currently expanded schema (schema2).
Click the 'Apply' button.
Now the scroll state of the 'Model objects' pane is changed to the top, and the expand state of the 'Model objects' pane is changed - the schema1 function section is expanded.
Expected behavior
The scroll state and expand state of the 'Model objects' pane is unchanged.
Info about your desktop
OS: Linux Mint
Version: 21.1
Window manager: default
pgModeler version: 1.1.0-beta1
Qt version: 6.2.4
The text was updated successfully, but these errors were encountered:
This is working correctly here. The items' expanded state is saved/restored as expected. The only thing I can confirm is that the vertical scrollbar position is not restored and when the user clicks " Apply" on any object editing dialog, the tree position is moved to the top. I'm running pgModeler 1.1.0 (Qt 6.5.3) on KDE 5 and openSuse 15.5.
P.S.: I've added a small patch for the vertical scroll bar issue.
I have today compiled 1.1.0 and the scroll state is indeed fixed - thank you!
However, the expand issue is still there. You need to expand one level deeper than schema, then collapse the schema without collapsing the lower levels first in order to experience it.
You were right. There was a bug in the expanded state restoration. I've implemented an alternative way to control that and now it seems to be working correctly. Could you confirm for me, please?
Bug description
When clicking the 'Apply' button in the 'Function properties' dialogue then the expand state and the scroll state of the 'Model objects' pane is lost.
The 'Model objects' pane scroll state is scrolled to the top, and any branch that has ever been expanded since the model was opened is expanded, even if it was not expanded at the time of clicking the 'Apply' button.
How to reproduce
In a model with several schema and many functions so that the objects in the 'Model objects' pane can be scrolled do the following:
Expand a schema (schema1) at the top of the 'Model objects' pane.
Expand the function section of the expanded schema (schema1).
Collapse the expanded schema (schema1).
Expand another schema (schema2) lower down than the previously expanded schema.
Expand the functions of the currently expanded schema (schema2).
Scroll down in the 'Model objects' pane.
Open the 'Function properties' dialogue of a function in the currently expanded schema (schema2).
Click the 'Apply' button.
Now the scroll state of the 'Model objects' pane is changed to the top, and the expand state of the 'Model objects' pane is changed - the schema1 function section is expanded.
Expected behavior
The scroll state and expand state of the 'Model objects' pane is unchanged.
Info about your desktop
The text was updated successfully, but these errors were encountered: