From 946fae3acf8ca9f384b662e40f406506e8b90ea7 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 23 Apr 2012 22:37:34 -0700 Subject: CSSPanel - Resizer --- js/panels/css-panel/css-panel.reel/css-panel.css | 8 ------ js/panels/css-panel/css-panel.reel/css-panel.html | 1 - js/panels/css-panel/css-panel.reel/css-panel.js | 32 +---------------------- 3 files changed, 1 insertion(+), 40 deletions(-) (limited to 'js/panels/css-panel/css-panel.reel') 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 @@ -webkit-box-flex: 0; } -/* ------------------ - Resizer - ------------------ */ -.sub-panel-resizer { - width: 100%; - height: 3px; - background-color: red; -} 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

Style Sheets

-

Styles

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, Component = require("montage/ui/component").Component; exports.CSSPanelNew = Montage.create(Component, { - _resizedHeight : { - value: null - }, - isResizing : { - value: null - }, - _height: { - value: null - }, - height: { - get: function() { - return this._height; - }, - set: function(val) { - if(this._height !== val) { - this._height = val; - this.needsDraw = true; - } - } - }, prepareForDraw : { @@ -39,17 +19,7 @@ exports.CSSPanelNew = Montage.create(Component, { value: function() { console.log("css panel : draw. height: ", this.height); -// if(this.height) { -// console.log("CSS Panel draw - resizing to", (this.height + this._resizedHeight) + "px"); -// this.styleSheetsView.element.style.height = (this.height + this._resizedHeight) + "px"; -// } - } - }, - didDraw: { - value: function() { - if(!this.isResizing) { - //this.height = this.element.offsetHeight; - } + } } }); -- cgit v1.2.3