summaryrefslogtreecommitdiff
path: root/store.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-02-13 09:54:40 +0100
committerjmoenig <jens@moenig.org>2014-02-13 09:54:40 +0100
commit505859533586e697442b349a545aa0307784c9f4 (patch)
treee410f910684c1314f03364fd170a19dd6d7375ed /store.js
parentdac7460e7644e49be8eca2885500f8ea6616b511 (diff)
downloadsnap-yow-505859533586e697442b349a545aa0307784c9f4.tar.gz
snap-yow-505859533586e697442b349a545aa0307784c9f4.zip
Constrain minimum stage size to 480 x 180
Diffstat (limited to 'store.js')
-rw-r--r--store.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/store.js b/store.js
index eaa3301..b3f5d95 100644
--- a/store.js
+++ b/store.js
@@ -61,7 +61,7 @@ SyntaxElementMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.store = '2014-February-11';
+modules.store = '2014-February-13';
// XML_Serializer ///////////////////////////////////////////////////////
@@ -380,11 +380,11 @@ SnapSerializer.prototype.loadProjectModel = function (xmlNode) {
StageMorph.prototype.dimensions = new Point(480, 360);
if (model.stage.attributes.width) {
StageMorph.prototype.dimensions.x =
- +model.stage.attributes.width;
+ Math.max(+model.stage.attributes.width, 480);
}
if (model.stage.attributes.height) {
StageMorph.prototype.dimensions.y =
- +model.stage.attributes.height;
+ Math.max(+model.stage.attributes.height, 180);
}
project.stage.setExtent(StageMorph.prototype.dimensions);
SpriteMorph.prototype.useFlatLineEnds =