This reverts commit 0ba07300e1
.
This commit is contained in:
parent
0ba07300e1
commit
053fca6e83
|
@ -301,16 +301,18 @@ class AxisItem(GraphicsWidget):
|
||||||
def _updateMaxTextSize(self, x):
|
def _updateMaxTextSize(self, x):
|
||||||
## Informs that the maximum tick size orthogonal to the axis has
|
## Informs that the maximum tick size orthogonal to the axis has
|
||||||
## changed; we use this to decide whether the item needs to be resized
|
## changed; we use this to decide whether the item needs to be resized
|
||||||
## to accommodate.
|
## to accomodate.
|
||||||
if self.orientation in ['left', 'right']:
|
if self.orientation in ['left', 'right']:
|
||||||
if x > self.textWidth or x < self.textWidth-10:
|
mx = max(self.textWidth, x)
|
||||||
self.textWidth = x
|
if mx > self.textWidth or mx < self.textWidth-10:
|
||||||
|
self.textWidth = mx
|
||||||
if self.style['autoExpandTextSpace'] is True:
|
if self.style['autoExpandTextSpace'] is True:
|
||||||
self._updateWidth()
|
self._updateWidth()
|
||||||
#return True ## size has changed
|
#return True ## size has changed
|
||||||
else:
|
else:
|
||||||
if x > self.textHeight or x < self.textHeight-10:
|
mx = max(self.textHeight, x)
|
||||||
self.textHeight = x
|
if mx > self.textHeight or mx < self.textHeight-10:
|
||||||
|
self.textHeight = mx
|
||||||
if self.style['autoExpandTextSpace'] is True:
|
if self.style['autoExpandTextSpace'] is True:
|
||||||
self._updateHeight()
|
self._updateHeight()
|
||||||
#return True ## size has changed
|
#return True ## size has changed
|
||||||
|
|
Loading…
Reference in New Issue
Block a user