Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/block.py
diff options
context:
space:
mode:
Diffstat (limited to 'block.py')
-rw-r--r--block.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/block.py b/block.py
index f7eb05b..f6f2a09 100644
--- a/block.py
+++ b/block.py
@@ -118,10 +118,11 @@ class Block:
# make sure the label fits
lw = self.spr.label_width()
lwh = self.spr.label_area_dimensions()
- if lw > lwh[0]:
- self._dx = (lw-lwh[0])
- self._make_block(self.svg)
- self.spr.set_shape(self.shapes[0])
+ self._dx = (lw-lwh[0])
+ if self._dx < 0:
+ self._dx = 0
+ self._make_block(self.svg)
+ self.spr.set_shape(self.shapes[0])
# We may want to rescale blocks as well.
def rescale(self, scale):