diff options
Diffstat (limited to 'js/panels/css-panel/css-panel.reel')
-rw-r--r-- | js/panels/css-panel/css-panel.reel/css-panel.css | 8 | ||||
-rw-r--r-- | js/panels/css-panel/css-panel.reel/css-panel.html | 1 | ||||
-rw-r--r-- | js/panels/css-panel/css-panel.reel/css-panel.js | 32 |
3 files changed, 1 insertions, 40 deletions
diff --git a/js/panels/css-panel/css-panel.reel/css-panel.css b/js/panels/css-panel/css-panel.reel/css-panel.css index e525c08f..7bcfbc1a 100644 --- a/js/panels/css-panel/css-panel.reel/css-panel.css +++ b/js/panels/css-panel/css-panel.reel/css-panel.css | |||
@@ -48,12 +48,4 @@ | |||
48 | -webkit-box-flex: 0; | 48 | -webkit-box-flex: 0; |
49 | } | 49 | } |
50 | 50 | ||
51 | /* ------------------ | ||
52 | Resizer | ||
53 | ------------------ */ | ||
54 | 51 | ||
55 | .sub-panel-resizer { | ||
56 | width: 100%; | ||
57 | height: 3px; | ||
58 | background-color: red; | ||
59 | } | ||
diff --git a/js/panels/css-panel/css-panel.reel/css-panel.html b/js/panels/css-panel/css-panel.reel/css-panel.html index 4be4d6dd..8ee56086 100644 --- a/js/panels/css-panel/css-panel.reel/css-panel.html +++ b/js/panels/css-panel/css-panel.reel/css-panel.html | |||
@@ -40,7 +40,6 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
40 | <section id="container" class="css-panel"> | 40 | <section id="container" class="css-panel"> |
41 | <h3>Style Sheets</h3> | 41 | <h3>Style Sheets</h3> |
42 | <div id="style-sheet-view"></div> | 42 | <div id="style-sheet-view"></div> |
43 | <div data-montage-id="resizeBar" class="sub-panel-resizer"></div> | ||
44 | <h3>Styles</h3> | 43 | <h3>Styles</h3> |
45 | <div id="styles-view-container"></div> | 44 | <div id="styles-view-container"></div> |
46 | </section> | 45 | </section> |
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 | }); |