Skip to content

Commit

Permalink
adjust scrollbars when the item in layertree is checked
Browse files Browse the repository at this point in the history
  • Loading branch information
lindakladivova committed Jun 5, 2023
1 parent e887353 commit 63207fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/wxpython/lmgr/layertree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,6 @@ def OnLayerChecking(self, event):

def OnLayerChecked(self, event):
"""Enable/disable data layer"""

item = event.GetItem()
checked = item.IsChecked()

Expand Down Expand Up @@ -1784,6 +1783,8 @@ def OnLayerChecked(self, event):
if vselect:
vselect.Reset()

self.AdjustMyScrollbars()

def OnCmdChanged(self, event):
"""Change command string"""
ctrl = event.GetEventObject().GetId()
Expand Down

0 comments on commit 63207fc

Please sign in to comment.