Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TurtleArt/tawindow.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index 5b250c3..565e0e7 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -2751,7 +2751,11 @@ class TurtleArtWindow():
dy = 0
# Calculate height of drag group
while gblk is not None:
- dy += int((gblk.docks[-1][3] - gblk.docks[0][3]) / gblk.scale)
+ delta = int((gblk.docks[-1][3] - gblk.docks[0][3]) / gblk.scale)
+ if delta == 0:
+ dy += 21 # Fixme: don't hardcode size of stop action block
+ else:
+ dy += delta
gblk = gblk.connections[-1]
# Clamp has room for one "standard" block by default
if dy > 0: