Merge pull request #1173 from 2xB/fix-1136-2
GraphicsLayout: Always call layout.activate() after adding items
This commit is contained in:
commit
2ac1eefeb5
@ -134,6 +134,9 @@ class GraphicsLayout(GraphicsWidget):
|
||||
item.geometryChanged.connect(self._updateItemBorder)
|
||||
|
||||
self.layout.addItem(item, row, col, rowspan, colspan)
|
||||
self.layout.activate() # Update layout, recalculating bounds.
|
||||
# Allows some PyQtGraph features to also work without Qt event loop.
|
||||
|
||||
self.nextColumn()
|
||||
|
||||
def getItem(self, row, col):
|
||||
|
Loading…
Reference in New Issue
Block a user