From 6059165a54040f8b22b9439744b907de998c3122 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 9 Mar 2015 18:52:53 -0400 Subject: [PATCH] if composer:resizePercentage hasn't been set, default to half the page --- public/src/modules/composer/resize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/modules/composer/resize.js b/public/src/modules/composer/resize.js index 770f087b3c..f21c0027b3 100644 --- a/public/src/modules/composer/resize.js +++ b/public/src/modules/composer/resize.js @@ -9,7 +9,7 @@ define('composer/resize', function() { env; resize.reposition = function(postContainer) { - var percentage = localStorage.getItem('composer:resizePercentage'); + var percentage = localStorage.getItem('composer:resizePercentage') || 0.5; doResize(postContainer, percentage); };