diff options
author | Valerio Virgillito | 2012-05-29 11:43:55 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-29 11:43:55 -0700 |
commit | 4fa08fe2ce439a5f5c248c568f72d3828ee11b36 (patch) | |
tree | 3fb2977a349c01c5b8cdbd2ab686a0099e3c3999 /js/stage | |
parent | 0c9c719acb9381e147b90abbf733ad7eb3beb7f7 (diff) | |
download | ninja-4fa08fe2ce439a5f5c248c568f72d3828ee11b36.tar.gz |
fix for the document tab close button and rulers on initial document
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index e00d2b54..a6e7c24f 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -171,10 +171,8 @@ exports.Stage = Montage.create(Component, { | |||
171 | return; | 171 | return; |
172 | } | 172 | } |
173 | 173 | ||
174 | if(!value) { | 174 | if(!this._currentDocument) { |
175 | // Show the rulers | ||
176 | this.showRulers(); | 175 | this.showRulers(); |
177 | // Show the canvas | ||
178 | this.hideCanvas(false); | 176 | this.hideCanvas(false); |
179 | } | 177 | } |
180 | 178 | ||
@@ -186,7 +184,7 @@ exports.Stage = Montage.create(Component, { | |||
186 | this.initWithDocument(false); | 184 | this.initWithDocument(false); |
187 | } | 185 | } |
188 | 186 | ||
189 | if(!this._currentDocument) { | 187 | if(!value) { |
190 | this.hideRulers(); | 188 | this.hideRulers(); |
191 | this.hideCanvas(true); | 189 | this.hideCanvas(true); |
192 | } | 190 | } |