aboutsummaryrefslogtreecommitdiff
path: root/js/panels/css-panel/css-panel.reel/css-panel.js
diff options
context:
space:
mode:
authorEric Guzman2012-04-23 22:37:34 -0700
committerEric Guzman2012-04-23 22:37:34 -0700
commit946fae3acf8ca9f384b662e40f406506e8b90ea7 (patch)
tree4b7afe0543a37f678ac1e12512bc9bd6315a40cd /js/panels/css-panel/css-panel.reel/css-panel.js
parentcdd1189e349e2974681e2c451e861e5b0db570e4 (diff)
downloadninja-946fae3acf8ca9f384b662e40f406506e8b90ea7.tar.gz
CSSPanel - Resizer
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.js32
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
10exports.CSSPanelNew = Montage.create(Component, { 10exports.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});