From 97ebd035086a109c1dc97dc488eddd7f245a75a8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 15 Aug 2021 12:33:26 -0400 Subject: [PATCH] Avoid position resets on label paint --- piker/ui/_annotate.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/piker/ui/_annotate.py b/piker/ui/_annotate.py index 2a032cb7..748a3f49 100644 --- a/piker/ui/_annotate.py +++ b/piker/ui/_annotate.py @@ -214,12 +214,6 @@ class LevelMarker(QGraphicsPathItem): if self.keep_in_view: self.position_in_view() - else: # just place at desired level even if not in view - self.setPos( - self.scene_x(), - self.mapToScene(QPointF(0, self.get_level())).y() - ) - super().paint(p, opt, w) if self._on_paint: