diff options
author | Valerio Virgillito | 2012-05-03 23:08:31 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-03 23:08:31 -0700 |
commit | 3542dab96689a54f97fff6fc654838c07c724517 (patch) | |
tree | 1c8a8a53985bb72a34ad302e402ffe24aec2f242 /js/stage | |
parent | 24b483db367291b72170f969de78efcb1a9b95bd (diff) | |
parent | 60388a7d01d9e34b5cd15bd5cb190a610e4f9a0e (diff) | |
download | ninja-3542dab96689a54f97fff6fc654838c07c724517.tar.gz |
Merge branch 'tag-2.0' of github.com:mencio/ninja-internal into data-id
Conflicts:
js/components/tools-properties/tag-properties.reel/tag-properties.html
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index 515165bf..b181dc70 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -855,6 +855,12 @@ exports.Stage = Montage.create(Component, { | |||
855 | } | 855 | } |
856 | }, | 856 | }, |
857 | 857 | ||
858 | setStageAsViewport: { | ||
859 | value: function() { | ||
860 | this.stageDeps.viewUtils.setViewportObj(this.application.ninja.currentDocument.documentRoot); | ||
861 | } | ||
862 | }, | ||
863 | |||
858 | setZoom: { | 864 | setZoom: { |
859 | value: function(value) { | 865 | value: function(value) { |
860 | if(!this._firstDraw) | 866 | if(!this._firstDraw) |
@@ -958,8 +964,9 @@ exports.Stage = Montage.create(Component, { | |||
958 | this.application.ninja.documentController.activeDocument.savedLeftScroll = this._iframeContainer.scrollLeft; | 964 | this.application.ninja.documentController.activeDocument.savedLeftScroll = this._iframeContainer.scrollLeft; |
959 | this.application.ninja.documentController.activeDocument.savedTopScroll = this._iframeContainer.scrollTop; | 965 | this.application.ninja.documentController.activeDocument.savedTopScroll = this._iframeContainer.scrollTop; |
960 | } | 966 | } |
961 | }, | 967 | }, |
962 | restoreScroll:{ | 968 | |
969 | restoreScroll:{ | ||
963 | value: function(){ | 970 | value: function(){ |
964 | this._iframeContainer.scrollLeft = this.application.ninja.documentController.activeDocument.savedLeftScroll; | 971 | this._iframeContainer.scrollLeft = this.application.ninja.documentController.activeDocument.savedLeftScroll; |
965 | this._scrollLeft = this.application.ninja.documentController.activeDocument.savedLeftScroll; | 972 | this._scrollLeft = this.application.ninja.documentController.activeDocument.savedLeftScroll; |