aboutsummaryrefslogtreecommitdiff
path: root/js/stage/stage.reel
diff options
context:
space:
mode:
authorAnanya Sen2012-02-23 17:55:59 -0800
committerAnanya Sen2012-02-23 17:55:59 -0800
commit6e66f411ba02eaaeb33471115345ecf3c7ce4ce9 (patch)
tree527a26ece79b0e55dbb9a310007010631614cc0c /js/stage/stage.reel
parentec3d07c2fea4e79c68606234074f43d694982e5b (diff)
downloadninja-6e66f411ba02eaaeb33471115345ecf3c7ce4ce9.tar.gz
refresh draw-utils, snap-manager, view-utils for html document stitching
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/stage/stage.reel')
-rwxr-xr-xjs/stage/stage.reel/stage.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index 755c7ff1..9784f14d 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -148,12 +148,12 @@ exports.Stage = Montage.create(Component, {
148 148
149 userContentLeft: { 149 userContentLeft: {
150 get: function() { return this._userContentLeft; }, 150 get: function() { return this._userContentLeft; },
151 set: function(value) { this._userContentLeft = value; } 151 set: function(value) { this._userContentLeft = value;}
152 }, 152 },
153 153
154 userContentTop: { 154 userContentTop: {
155 get: function() { return this._userContentTop; }, 155 get: function() { return this._userContentTop; },
156 set: function(value) { this._userContentTop = value; } 156 set: function(value) { this._userContentTop = value;}
157 }, 157 },
158 158
159 userContentBorder: { 159 userContentBorder: {
@@ -439,12 +439,11 @@ exports.Stage = Montage.create(Component, {
439 */ 439 */
440 handleScroll: { 440 handleScroll: {
441 value: function() { 441 value: function() {
442
443 this._scrollLeft = this._iframeContainer.scrollLeft; 442 this._scrollLeft = this._iframeContainer.scrollLeft;
444 this._scrollTop = this._iframeContainer.scrollTop; 443 this._scrollTop = this._iframeContainer.scrollTop;
445 444
446 this._userContentLeft = this._documentOffsetLeft - this._scrollLeft + this._userContentBorder; 445 this.userContentLeft = this._documentOffsetLeft - this._scrollLeft + this._userContentBorder;
447 this._userContentTop = this._documentOffsetTop - this._scrollTop + this._userContentBorder; 446 this.userContentTop = this._documentOffsetTop - this._scrollTop + this._userContentBorder;
448 447
449 // Need to clear the snap cache and set up the drag plane 448 // Need to clear the snap cache and set up the drag plane
450 //snapManager.setupDragPlaneFromPlane( workingPlane ); 449 //snapManager.setupDragPlaneFromPlane( workingPlane );
@@ -452,7 +451,6 @@ exports.Stage = Montage.create(Component, {
452 451
453 this.needsDraw = true; 452 this.needsDraw = true;
454 this.layout.draw(); 453 this.layout.draw();
455
456 //this._toolsList.action("DrawHandles"); 454 //this._toolsList.action("DrawHandles");
457 455
458 } 456 }