summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2015-01-13 08:37:33 +0100
committerjmoenig <jens@moenig.org>2015-01-13 08:37:33 +0100
commit4a3cf0aa3bc4778821801ec325fb2fd9dbbd038b (patch)
treecb90153b4ff676dac245fca701e9b1a7a91ed25e /gui.js
parent14821611faf72b86c886eb10d221f0ed550bb7e7 (diff)
downloadsnap-byow-4a3cf0aa3bc4778821801ec325fb2fd9dbbd038b.tar.gz
snap-byow-4a3cf0aa3bc4778821801ec325fb2fd9dbbd038b.zip
fixed #680
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/gui.js b/gui.js
index 521f27e..46d47e5 100644
--- a/gui.js
+++ b/gui.js
@@ -69,7 +69,7 @@ SpeechBubbleMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.gui = '2015-January-12';
+modules.gui = '2015-January-13';
// Declarations
@@ -3343,6 +3343,15 @@ IDE_Morph.prototype.toggleAppMode = function (appMode) {
}).forEach(function (s) {
s.adjustScrollBars();
});
+ // prevent rotation and draggability controls from
+ // showing for the stage
+ if (this.currentSprite === this.stage) {
+ this.spriteBar.children.forEach(function (child) {
+ if (child instanceof PushButtonMorph) {
+ child.hide();
+ }
+ });
+ }
}
this.setExtent(this.world().extent()); // resume trackChanges
};