Skip to content

Commit

Permalink
wx.metadata/g.gui.metadata: fix not overflow duplicated item widget f…
Browse files Browse the repository at this point in the history
…rom ScrolledPanel widget during scrolling
  • Loading branch information
tmszi committed Jul 2, 2020
1 parent 8736c91 commit c3bf5c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grass7/gui/wxpython/wx.metadata/mdlib/mdeditorfactory.py
Expand Up @@ -725,7 +725,6 @@ class MdNotebookPage(scrolled.ScrolledPanel):
def __init__(self, parent):
scrolled.ScrolledPanel.__init__(self, parent=parent, id=wx.ID_ANY)
self.items = []
self.SetupScrolling()
self._addNotebookPageLay()
self.sizerIndexDict = {}
self.sizerIndex = 0
Expand Down Expand Up @@ -768,8 +767,10 @@ def addDuplicatedItem(self, item, mId):
self.items.append(item)
posIndex = self.sizerIndexDict[mId]
self.mainSizer.Insert(posIndex, item, proportion=0, flag=wx.EXPAND)
self.SetSizerAndFit(self.mainSizer)
self.GetParent().Refresh()
self.Layout()
self.SetupScrolling()


def removeBox(self, box):
box.Destroy()
Expand Down

0 comments on commit c3bf5c6

Please sign in to comment.