mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
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
Block a user