From 9f648c1340b8c1cc9b4f8e414427e2d08784cc57 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 03 Mar 2010 19:51:00 +0000 Subject: fixed collapsible block regression --- (limited to 'tawindow.py') diff --git a/tawindow.py b/tawindow.py index 9530692..aa40807 100644 --- a/tawindow.py +++ b/tawindow.py @@ -1663,14 +1663,18 @@ class TurtleArtWindow(): bot = self._find_sandwich_bottom(top) if bot is None: return + """ if top.ey > 0: + print "reseting arm" top.reset_y() - (tx, ty) = top.spr.get_xy() - (tw, th) = top.spr.get_dimensions() - (bx, by) = bot.spr.get_xy() + """ + tx, ty = top.spr.get_xy() + tw, th = top.spr.get_dimensions() + bx, by = bot.spr.get_xy() dy = by-(ty+th) if dy > 0: top.expand_in_y(dy/top.scale) + top.refresh() """ Check the state of collapsible blocks upon change in dock state. -- cgit v0.9.1