From 38bdc86b55597d41b126a6465083ba7caf8458ef Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 5 Feb 2014 11:46:55 +0100 Subject: One-stop-shopping for stage dimensions changing the stage dimensions in line 3720 of objects.js takes care of everything --- objects.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'objects.js') 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(); }; -- cgit v1.3.1