diff options
Diffstat (limited to 'js/panels/css-panel/css-panel.reel/css-panel.js')
-rw-r--r-- | js/panels/css-panel/css-panel.reel/css-panel.js | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/js/panels/css-panel/css-panel.reel/css-panel.js b/js/panels/css-panel/css-panel.reel/css-panel.js index 21a466d5..b6e9613b 100644 --- a/js/panels/css-panel/css-panel.reel/css-panel.js +++ b/js/panels/css-panel/css-panel.reel/css-panel.js | |||
@@ -8,26 +8,6 @@ var Montage = require("montage/core/core").Montage, | |||
8 | Component = require("montage/ui/component").Component; | 8 | Component = require("montage/ui/component").Component; |
9 | 9 | ||
10 | exports.CSSPanelNew = Montage.create(Component, { | 10 | exports.CSSPanelNew = Montage.create(Component, { |
11 | _resizedHeight : { | ||
12 | value: null | ||
13 | }, | ||
14 | isResizing : { | ||
15 | value: null | ||
16 | }, | ||
17 | _height: { | ||
18 | value: null | ||
19 | }, | ||
20 | height: { | ||
21 | get: function() { | ||
22 | return this._height; | ||
23 | }, | ||
24 | set: function(val) { | ||
25 | if(this._height !== val) { | ||
26 | this._height = val; | ||
27 | this.needsDraw = true; | ||
28 | } | ||
29 | } | ||
30 | }, | ||
31 | 11 | ||
32 | 12 | ||
33 | prepareForDraw : { | 13 | prepareForDraw : { |
@@ -39,17 +19,7 @@ exports.CSSPanelNew = Montage.create(Component, { | |||
39 | value: function() { | 19 | value: function() { |
40 | console.log("css panel : draw. height: ", this.height); | 20 | console.log("css panel : draw. height: ", this.height); |
41 | 21 | ||
42 | // if(this.height) { | 22 | |
43 | // console.log("CSS Panel draw - resizing to", (this.height + this._resizedHeight) + "px"); | ||
44 | // this.styleSheetsView.element.style.height = (this.height + this._resizedHeight) + "px"; | ||
45 | // } | ||
46 | } | ||
47 | }, | ||
48 | didDraw: { | ||
49 | value: function() { | ||
50 | if(!this.isResizing) { | ||
51 | //this.height = this.element.offsetHeight; | ||
52 | } | ||
53 | } | 23 | } |
54 | } | 24 | } |
55 | }); | 25 | }); |