diff options
author | Jose Antonio Marquez | 2012-05-11 15:15:33 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-05-11 15:15:33 -0700 |
commit | d114f222cb48a101ffdb1b88d43823ca16f2c7df (patch) | |
tree | f6aa6548db45bb0d09fc4e01909028d03015e0ec /js/document/views/design.js | |
parent | d2e1d4eeba4439ed26f2adf1c34991caf44a591f (diff) | |
download | ninja-d114f222cb48a101ffdb1b88d43823ca16f2c7df.tar.gz |
Fixing overflow bug for banner templates
Ensuring overflow is visible but saved as hidden.
Diffstat (limited to 'js/document/views/design.js')
-rwxr-xr-x | js/document/views/design.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js index e838dd49..16d1ac06 100755 --- a/js/document/views/design.js +++ b/js/document/views/design.js | |||
@@ -168,7 +168,7 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, { | |||
168 | } | 168 | } |
169 | } | 169 | } |
170 | //Adjusting margin per size of document | 170 | //Adjusting margin per size of document |
171 | this.document.head.getElementsByTagName('style')[0].innerHTML += '\n ninja-banner {margin-top: -'+Math.floor(this._template.size.height/2)+'px; margin-left: -'+Math.floor(this._template.size.width/2)+'px}'; | 171 | this.document.head.getElementsByTagName('style')[0].innerHTML += '\n ninja-banner {overflow: visible !important; margin-top: -'+Math.floor(this._template.size.height/2)+'px; margin-left: -'+Math.floor(this._template.size.width/2)+'px}'; |
172 | //Setting content in template | 172 | //Setting content in template |
173 | ninjaBanner.innerHTML = banner.innerHTML; | 173 | ninjaBanner.innerHTML = banner.innerHTML; |
174 | //Garbage collection | 174 | //Garbage collection |