diff options
Diffstat (limited to 'js/panels/Resizer.js')
-rwxr-xr-x | js/panels/Resizer.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/js/panels/Resizer.js b/js/panels/Resizer.js index 6bfcb9e7..5d608199 100755 --- a/js/panels/Resizer.js +++ b/js/panels/Resizer.js | |||
@@ -97,15 +97,15 @@ exports.Resizer = Montage.create(Component, { | |||
97 | }, | 97 | }, |
98 | 98 | ||
99 | _isPanel: { | 99 | _isPanel: { |
100 | value: true | 100 | value: true |
101 | }, | 101 | }, |
102 | isPanel: { | 102 | isPanel: { |
103 | get: function() { | 103 | get: function() { |
104 | return this._isPanel; | 104 | return this._isPanel; |
105 | }, | 105 | }, |
106 | set: function(value) { | 106 | set: function(value) { |
107 | this._isPanel = value; | 107 | this._isPanel = value; |
108 | }, | 108 | }, |
109 | serializable: true | 109 | serializable: true |
110 | }, | 110 | }, |
111 | 111 | ||
@@ -239,11 +239,11 @@ exports.Resizer = Montage.create(Component, { | |||
239 | this.panel.style.height = this.value + "px"; | 239 | this.panel.style.height = this.value + "px"; |
240 | } | 240 | } |
241 | else { | 241 | else { |
242 | if (this.isPanel) { | 242 | if (this.isPanel) { |
243 | this.value = this._initDimension + (this._startPosition - e.x); | 243 | this.value = this._initDimension + (this._startPosition - e.x); |
244 | } else { | 244 | } else { |
245 | this.value = this._isInversed ? this._initDimension + (this._startPosition - e.x) : this._initDimension + (e.x - this._startPosition); | 245 | this.value = this._isInversed ? this._initDimension + (this._startPosition - e.x) : this._initDimension + (e.x - this._startPosition); |
246 | } | 246 | } |
247 | this.panel.style.width = this.value + "px"; | 247 | this.panel.style.width = this.value + "px"; |
248 | } | 248 | } |
249 | 249 | ||