mirror of https://github.com/m-labs/artiq.git
parent
375d2d587c
commit
95b3ddbaf0
|
@ -223,7 +223,7 @@ class ScanWidget(QtWidgets.QWidget):
|
|||
self._zoom(self.zoomFactor**y, ev.x())
|
||||
|
||||
def resizeEvent(self, ev):
|
||||
if not ev.oldSize().isValid():
|
||||
if not ev.oldSize().isValid() or not ev.oldSize().width():
|
||||
self.viewRange()
|
||||
return
|
||||
self.ticker.min_ticks = max(
|
||||
|
|
Loading…
Reference in New Issue