Skip to content

wxGUI/lmgr: preserve scroll map layer position during interaction with map layers - #7647

Merged
echoix merged 1 commit into
OSGeo:mainfrom
tmszi:fix-wxgui-layers-preserve-scrollbar-position
Jul 10, 2026
Merged

echoix merged 1 commit into
OSGeo:mainfrom
tmszi:fix-wxgui-layers-preserve-scrollbar-position

Conversation

@tmszi

@tmszi tmszi commented Jul 8, 2026

Copy link
Copy Markdown
Member

Interacting with map layers (selecting/unselecting, moving) inside wxGUI Layers widget is by default handled by wxPython CustomTreeCtrl class, EnsureVisible() method (respectively by ScrollTo() method) .

https://github.com/wxWidgets/Phoenix/blob/c19ff0ad30637d30a626806b60e31ec610256b84/wx/lib/agw/customtreectrl.py#L6700-L6767

Fixes #7082.

Actual behavior Expected behavior
wxgui_layers_actual_behavior.mp4
wxgui_layers_expected_behavior.mp4

@tmszi tmszi added this to the 8.6.0 milestone Jul 8, 2026
@tmszi tmszi added enhancement New feature or request GUI wxGUI related Python Related code is in Python labels Jul 8, 2026

@echoix echoix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed better behavior

@echoix
echoix merged commit 9ea295a into OSGeo:main Jul 10, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request GUI wxGUI related Python Related code is in Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] GUI: layer list behaviour unstable when list longer than view

2 participants