diff options
| author | jmoenig <jens@moenig.org> | 2014-02-05 11:46:55 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-02-05 11:46:55 +0100 |
| commit | 38bdc86b55597d41b126a6465083ba7caf8458ef (patch) | |
| tree | 297af0b122ab5364954c2dd4cd3fc9b317d2bf9c /objects.js | |
| parent | 8b5fa2ff9bd81ad9227b2593f9ccd6fdb8d32444 (diff) | |
| download | snap-yow-38bdc86b55597d41b126a6465083ba7caf8458ef.tar.gz snap-yow-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.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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(); }; |
