diff options
author | Kruti Shah | 2012-05-31 10:44:45 -0700 |
---|---|---|
committer | Kruti Shah | 2012-05-31 10:44:45 -0700 |
commit | c350cc1c060fdf17357ddadce024267943784593 (patch) | |
tree | 453f86e88f1ee1dfda6fb4b7cc7b17e306e39536 /js/tools/ZoomTool.js | |
parent | fdc4f5c7f81ae3b9adeca2232e60268b4be594a2 (diff) | |
parent | 121d0e616f48aa7cd048763554089c20a1883d7a (diff) | |
download | ninja-c350cc1c060fdf17357ddadce024267943784593.tar.gz |
Merge branch 'refs/heads/TimelineUberjd' into TimelineUber
Conflicts:
js/panels/Timeline/Layer.reel/Layer.js
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/tools/ZoomTool.js')
-rwxr-xr-x | js/tools/ZoomTool.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/tools/ZoomTool.js b/js/tools/ZoomTool.js index 93caf984..dc096592 100755 --- a/js/tools/ZoomTool.js +++ b/js/tools/ZoomTool.js | |||
@@ -184,7 +184,7 @@ exports.ZoomTool = Montage.create(DrawingTool, { | |||
184 | _setZoom:{ | 184 | _setZoom:{ |
185 | value:function(mode,zoomFactor) | 185 | value:function(mode,zoomFactor) |
186 | { | 186 | { |
187 | var userContent = this.application.ninja.currentDocument.documentRoot; | 187 | var userContent = this.application.ninja.currentDocument.model.documentRoot; |
188 | this._oldValue = this.application.ninja.documentBar.zoomFactor; | 188 | this._oldValue = this.application.ninja.documentBar.zoomFactor; |
189 | 189 | ||
190 | var globalPt; | 190 | var globalPt; |
@@ -280,7 +280,9 @@ exports.ZoomTool = Montage.create(DrawingTool, { | |||
280 | this.application.ninja.documentBar.zoomFactor = zoomFactor*100; | 280 | this.application.ninja.documentBar.zoomFactor = zoomFactor*100; |
281 | //this.application.ninja.stage.zoomFactor = zoomFactor; | 281 | //this.application.ninja.stage.zoomFactor = zoomFactor; |
282 | if (zoomFactor >= 1) | 282 | if (zoomFactor >= 1) |
283 | this.application.ninja.currentDocument.iframe.style.zoom = zoomFactor; | 283 | { |
284 | this.application.ninja.currentDocument.model.views.design.iframe.style.zoom = zoomFactor; | ||
285 | } | ||
284 | this.application.ninja.stage._firstDraw = false; | 286 | this.application.ninja.stage._firstDraw = false; |
285 | //tmp3 = viewUtils.localToGlobal( localPt, userContent ); // DEBUG - remove this line | 287 | //tmp3 = viewUtils.localToGlobal( localPt, userContent ); // DEBUG - remove this line |
286 | 288 | ||