fixes #687
This commit is contained in:
parent
3745cb1a2d
commit
cd2125cccb
@ -847,10 +847,6 @@ class ViewBox(GraphicsWidget):
|
||||
childRange[ax][1] += wp
|
||||
targetRect[ax] = childRange[ax]
|
||||
args['xRange' if ax == 0 else 'yRange'] = targetRect[ax]
|
||||
if len(args) == 0:
|
||||
return
|
||||
args['padding'] = 0
|
||||
args['disableAutoRange'] = False
|
||||
|
||||
# check for and ignore bad ranges
|
||||
for k in ['xRange', 'yRange']:
|
||||
@ -859,6 +855,11 @@ class ViewBox(GraphicsWidget):
|
||||
r = args.pop(k)
|
||||
#print("Warning: %s is invalid: %s" % (k, str(r))
|
||||
|
||||
if len(args) == 0:
|
||||
return
|
||||
args['padding'] = 0
|
||||
args['disableAutoRange'] = False
|
||||
|
||||
self.setRange(**args)
|
||||
finally:
|
||||
self._autoRangeNeedsUpdate = False
|
||||
|
Loading…
Reference in New Issue
Block a user