From 1c528b42f9b1c9be9197921586388c3a3bdc5c17 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Wed, 22 Feb 2012 23:16:23 -0800 Subject: CSS Panel Update - Adding montage objects for css panel --- js/panels/css-panel/css-panel.reel/css-panel.js | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 js/panels/css-panel/css-panel.reel/css-panel.js (limited to 'js/panels/css-panel/css-panel.reel/css-panel.js') diff --git a/js/panels/css-panel/css-panel.reel/css-panel.js b/js/panels/css-panel/css-panel.reel/css-panel.js new file mode 100644 index 00000000..a593f1c4 --- /dev/null +++ b/js/panels/css-panel/css-panel.reel/css-panel.js @@ -0,0 +1,33 @@ +/* + This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +var Montage = require("montage/core/core").Montage, + Component = require("montage/ui/component").Component; + +exports.CSSPanelNew = Montage.create(Component, { + hasTemplate: { + value: true + }, + condition: { + value: false + }, + templateDidLoad : { + value: function() { + console.log("css panel : template did load"); + //this.condition = true; + } + }, + prepareForDraw : { + value: function() { + console.log("css panel : prepare for draw"); + } + }, + draw : { + value: function() { + console.log("css panel : draw"); + } + } +}); -- cgit v1.2.3 From 1433f2bdf2e5b8c5c18fed5e9c17fd983ab3606d Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Fri, 2 Mar 2012 10:55:51 -0800 Subject: CSS Panel - Updating components, created toolbar components, and small changes to styles controller --- js/panels/css-panel/css-panel.reel/css-panel.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'js/panels/css-panel/css-panel.reel/css-panel.js') 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 a593f1c4..228e91f6 100644 --- a/js/panels/css-panel/css-panel.reel/css-panel.js +++ b/js/panels/css-panel/css-panel.reel/css-panel.js @@ -8,16 +8,9 @@ var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; exports.CSSPanelNew = Montage.create(Component, { - hasTemplate: { - value: true - }, - condition: { - value: false - }, templateDidLoad : { value: function() { console.log("css panel : template did load"); - //this.condition = true; } }, prepareForDraw : { -- cgit v1.2.3 From 97f21076db2603a1437f8bade3d9713433d473fe Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 23 Apr 2012 11:49:06 -0700 Subject: CSS Panel - Add stub for resizer --- js/panels/css-panel/css-panel.reel/css-panel.js | 37 ++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to 'js/panels/css-panel/css-panel.reel/css-panel.js') 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 228e91f6..21a466d5 100644 --- a/js/panels/css-panel/css-panel.reel/css-panel.js +++ b/js/panels/css-panel/css-panel.reel/css-panel.js @@ -8,11 +8,28 @@ var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; exports.CSSPanelNew = Montage.create(Component, { - templateDidLoad : { - value: function() { - console.log("css panel : template did load"); + _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 : { value: function() { console.log("css panel : prepare for draw"); @@ -20,7 +37,19 @@ exports.CSSPanelNew = Montage.create(Component, { }, draw : { value: function() { - console.log("css panel : draw"); + 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 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.js | 32 +------------------------ 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'js/panels/css-panel/css-panel.reel/css-panel.js') 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 From b52222a0e165825bf507b4f69b33d51c84eb85d4 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Thu, 10 May 2012 15:11:40 -0700 Subject: CSS Panel - Fix errors from new Montage and remove logs. --- js/panels/css-panel/css-panel.reel/css-panel.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'js/panels/css-panel/css-panel.reel/css-panel.js') 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 b6e9613b..4a2062af 100644 --- a/js/panels/css-panel/css-panel.reel/css-panel.js +++ b/js/panels/css-panel/css-panel.reel/css-panel.js @@ -8,18 +8,12 @@ var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; exports.CSSPanelNew = Montage.create(Component, { - - prepareForDraw : { value: function() { - console.log("css panel : prepare for draw"); } }, draw : { value: function() { - console.log("css panel : draw. height: ", this.height); - - } } }); -- cgit v1.2.3 From 1c3da2901f454ad2c18e20216bb2517740a1c080 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Tue, 22 May 2012 14:28:00 -0700 Subject: CSS Panel - Update components to use new serialization format --- js/panels/css-panel/css-panel.reel/css-panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/panels/css-panel/css-panel.reel/css-panel.js') 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 4a2062af..a117787e 100644 --- a/js/panels/css-panel/css-panel.reel/css-panel.js +++ b/js/panels/css-panel/css-panel.reel/css-panel.js @@ -7,7 +7,7 @@ var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; -exports.CSSPanelNew = Montage.create(Component, { +exports.CssPanel = Montage.create(Component, { prepareForDraw : { value: function() { } -- cgit v1.2.3