summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-02-05 11:46:55 +0100
committerjmoenig <jens@moenig.org>2014-02-05 11:46:55 +0100
commit38bdc86b55597d41b126a6465083ba7caf8458ef (patch)
tree297af0b122ab5364954c2dd4cd3fc9b317d2bf9c /objects.js
parent8b5fa2ff9bd81ad9227b2593f9ccd6fdb8d32444 (diff)
downloadsnap-38bdc86b55597d41b126a6465083ba7caf8458ef.tar.gz
snap-38bdc86b55597d41b126a6465083ba7caf8458ef.zip
One-stop-shopping for stage dimensions
changing the stage dimensions in line 3720 of objects.js takes care of everything
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/objects.js b/objects.js
index 52126e2..d93f582 100644
--- a/objects.js
+++ b/objects.js
@@ -124,7 +124,7 @@ PrototypeHatBlockMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.objects = '2014-February-04';
+modules.objects = '2014-February-05';
var SpriteMorph;
var StageMorph;
@@ -5305,7 +5305,7 @@ Costume.prototype.edit = function (aWorld, anIDE, isnew, oncancel, onsubmit) {
editor.openIn(
aWorld,
isnew ?
- newCanvas(new Point(480, 360)) :
+ newCanvas(StageMorph.prototype.dimensions) :
this.contents,
isnew ?
new Point(240, 180) :
@@ -6557,7 +6557,7 @@ StagePrompterMorph.prototype.init = function (question) {
if (this.label) {this.add(this.label); }
this.add(this.inputField);
this.add(this.button);
- this.setWidth(480 - 20);
+ this.setWidth(StageMorph.prototype.dimensions.x - 20);
this.fixLayout();
};