parent
85719fd8df
commit
386dcf8180
@ -191,8 +191,8 @@ class LinearRegionItem(GraphicsObject):
|
|||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
def boundingRect(self):
|
def boundingRect(self):
|
||||||
br = self.viewRect() # bounds of containing ViewBox mapped to local coords.
|
br = QtCore.QRectF(self.viewRect()) # bounds of containing ViewBox mapped to local coords.
|
||||||
|
|
||||||
rng = self.getRegion()
|
rng = self.getRegion()
|
||||||
if self.orientation in ('vertical', LinearRegionItem.Vertical):
|
if self.orientation in ('vertical', LinearRegionItem.Vertical):
|
||||||
br.setLeft(rng[0])
|
br.setLeft(rng[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user