diff options
author | Nivesh Rajbhandari | 2012-06-21 17:34:37 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-06-21 17:34:37 -0700 |
commit | 99d50a7dc1403d1d918a8e4a6f7876c559d5e3a9 (patch) | |
tree | f48cb570284e943df04fb86e855cb7cb4099d0b7 /js/stage | |
parent | c411f76d89c543837548085ff468fee0fb4f2ff9 (diff) | |
download | ninja-99d50a7dc1403d1d918a8e4a6f7876c559d5e3a9.tar.gz |
Reclaim negative padding when moving items back into positive direction.
Note that we only do this on elementChange and not elementChanging since it is a potentially slow routine.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index fce73882..3552935d 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -279,6 +279,10 @@ exports.Stage = Montage.create(Component, { | |||
279 | _userPaddingLeft: { value: 0 }, | 279 | _userPaddingLeft: { value: 0 }, |
280 | _userPaddingTop: { value: 0 }, | 280 | _userPaddingTop: { value: 0 }, |
281 | 281 | ||
282 | // keep track of the elements that determine the minimum left and top scrollable amount | ||
283 | minLeftElement: { value: null }, | ||
284 | minTopElement: { value: null }, | ||
285 | |||
282 | userPaddingLeft: { | 286 | userPaddingLeft: { |
283 | get: function() { return this._userPaddingLeft; }, | 287 | get: function() { return this._userPaddingLeft; }, |
284 | set: function(value) { | 288 | set: function(value) { |