diff options
author | Ananya Sen | 2012-02-27 11:59:58 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-27 11:59:58 -0800 |
commit | 604ace9cfc9fae6b6c121259523a9060c5306161 (patch) | |
tree | fb9058a1d828222b47ab4e71523667171b868a6d /js/document/html-document.js | |
parent | b056b4bef5982466d80d72e5cbb31e63087990e1 (diff) | |
download | ninja-604ace9cfc9fae6b6c121259523a9060c5306161.tar.gz |
- save show3DGrid flag per document while switching documents
- fix zoom tool keyboard control to listen to Z when ctrl and shift keys are not pressed with it
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/document/html-document.js')
-rwxr-xr-x | js/document/html-document.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js index 8798b407..c36e61d5 100755 --- a/js/document/html-document.js +++ b/js/document/html-document.js | |||
@@ -623,6 +623,8 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
623 | if(typeof this.application.ninja.selectedElements !== 'undefined'){ | 623 | if(typeof this.application.ninja.selectedElements !== 'undefined'){ |
624 | this.selectionModel = this.application.ninja.selectedElements; | 624 | this.selectionModel = this.application.ninja.selectedElements; |
625 | } | 625 | } |
626 | |||
627 | this.draw3DGrid = this.application.ninja.appModel.show3dGrid; | ||
626 | } | 628 | } |
627 | }, | 629 | }, |
628 | 630 | ||
@@ -644,6 +646,8 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
644 | this.application.ninja.stage._scrollLeft = this.savedTopScroll; | 646 | this.application.ninja.stage._scrollLeft = this.savedTopScroll; |
645 | } | 647 | } |
646 | this.application.ninja.stage.handleScroll(); | 648 | this.application.ninja.stage.handleScroll(); |
649 | |||
650 | this.application.ninja.appModel.show3dGrid = this.draw3DGrid; | ||
647 | } | 651 | } |
648 | } | 652 | } |
649 | //////////////////////////////////////////////////////////////////// | 653 | //////////////////////////////////////////////////////////////////// |