From 2df240cdfe1eb4f4538dae73b25edb9195e695c9 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 18 Sep 2021 17:09:30 -0400 Subject: [PATCH] Add todo for new view padding testing --- piker/ui/_interaction.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index 97222065..9f33253d 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -341,7 +341,14 @@ class ChartView(ViewBox): **kwargs, ): - super().__init__(parent=parent, **kwargs) + super().__init__( + parent=parent, + # TODO: look into the default view padding + # support that might replace somem of our + # ``ChartPlotWidget._set_yrange()` + # defaultPadding=0., + **kwargs + ) # disable vertical scrolling self.setMouseEnabled(x=True, y=False) @@ -533,7 +540,6 @@ class ChartView(ViewBox): # self.updateScaleBox(ev.buttonDownPos(), ev.pos()) else: # default bevavior: click to pan view - tr = self.childGroup.transform() tr = fn.invertQTransform(tr) tr = tr.map(dif*mask) - tr.map(Point(0, 0))