diff options
author | Valerio Virgillito | 2012-05-17 11:23:48 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-17 11:23:48 -0700 |
commit | aeb499a634bb5c9e4dd3f705f44a87c3817aa769 (patch) | |
tree | 7bbe1d778511418b1118bd06e7f38721d7eed370 /js/document/views | |
parent | 0e8ca026098e7abfaeb642643a21977490782922 (diff) | |
parent | 6ce2f2a5af1bc66d8dbec04abfae2e07f43afcfe (diff) | |
download | ninja-aeb499a634bb5c9e4dd3f705f44a87c3817aa769.tar.gz |
Merge pull request #243 from mqg734/Dom-Architecture
Adding default padding for banner templates.
Diffstat (limited to 'js/document/views')
-rwxr-xr-x | js/document/views/design.js | 4 |
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 | //////////////////////////////////////////////////////////////////// |