aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-05-17 11:09:45 -0700
committerNivesh Rajbhandari2012-05-17 11:09:45 -0700
commit2ba4a6fab3b81b537521760ee5f95f1bc80027f9 (patch)
treeb792458f3939e044343d32aca8e6354a075bc56c
parentdb749e10fdff655c2f3b8336a8cc58bf4f389e2c (diff)
downloadninja-2ba4a6fab3b81b537521760ee5f95f1bc80027f9.tar.gz
Adding default padding for banner templates.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-xjs/document/views/design.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js
index 3b2eb11f..2ccb82d1 100755
--- a/js/document/views/design.js
+++ b/js/document/views/design.js
@@ -184,6 +184,10 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, {
184 this._bodyFragment = null; 184 this._bodyFragment = null;
185 //Calling standard method to finish opening document 185 //Calling standard method to finish opening document
186 this.bodyContentLoaded(null); 186 this.bodyContentLoaded(null);
187
188 // TODO: Clean up this code
189 this.application.ninja.stage.documentOffsetLeft = parseInt((this.document.body.scrollWidth - this._template.size.width)/2);
190 this.application.ninja.stage.documentOffsetTop = parseInt((this.document.body.scrollHeight - this._template.size.height)/2);
187 } 191 }
188 }, 192 },
189 //////////////////////////////////////////////////////////////////// 193 ////////////////////////////////////////////////////////////////////