Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-25 14:44:59 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-25 14:44:59 (GMT)
commit17f4515cda0d53c489d04221c07dececb1cd5b18 (patch)
tree02887ee1577a5ead124cf90a476bbd7731d505d4 /tawindow.py
parentb98a33bb8136c2de6b570491ad82f529696157f1 (diff)
caught stack-arm corner case
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tawindow.py b/tawindow.py
index 1330932..a88d119 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1111,10 +1111,16 @@ class TurtleArtWindow():
for b in blocks:
self._adjust_dock_positions(b)
- # Look for any stacks that need to be collapsed.
+ # Look for any stacks that need to be collapsed or sandwiched
for b in blocks:
if self._collapsed(b):
self._collapse_stack(self._find_sandwich_top(b))
+ elif b.name == 'sandwichbottom' and self._collapsible(b):
+ b.svg.set_hide(True)
+ b.svg.set_show(False)
+ b.refresh()
+ self._grow_stack_arm(self._find_sandwich_top(b))
+
if len(blocks) > 0:
return blocks[0]
else: