diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js
index d12394fcc4..63988eaaa0 100644
--- a/public/src/modules/composer.js
+++ b/public/src/modules/composer.js
@@ -300,32 +300,6 @@ define(['taskbar'], function(taskbar) {
composer.initialized = true;
});
- // var taskbar = document.getElementById('taskbar');
-
- // composer.postContainer = document.createElement('div');
- // composer.postContainer.className = 'post-window row';
- // composer.postContainer.innerHTML = '
' +
- // '
' +
- // '
' +
- // '
' +
- // '
Drag and Drop Images Here
'+
- // '
' +
- // '
';
-
- // document.body.insertBefore(composer.postContainer, taskbar);
}
}
@@ -383,10 +357,12 @@ define(['taskbar'], function(taskbar) {
var percentage = localStorage.getItem('composer:resizePercentage'),
bodyRect = document.body.getBoundingClientRect();
- if (bodyRect.width >= 768) {
- composer.postContainer.style.width = Math.floor(bodyRect.width * percentage) + 'px';
- } else {
- composer.postContainer.style.width = '100%';
+ if (percentage) {
+ if (bodyRect.width >= 768) {
+ composer.postContainer.style.width = Math.floor(bodyRect.width * percentage) + 'px';
+ } else {
+ composer.postContainer.style.width = '100%';
+ }
}
composer.postContainer.style.visibility = 'visible';