diff options
Diffstat (limited to 'js/panels/properties.reel')
-rwxr-xr-x | js/panels/properties.reel/properties.css | 23 | ||||
-rwxr-xr-x | js/panels/properties.reel/properties.js | 2 | ||||
-rwxr-xr-x | js/panels/properties.reel/sections/custom.reel/custom.js | 16 |
3 files changed, 28 insertions, 13 deletions
diff --git a/js/panels/properties.reel/properties.css b/js/panels/properties.reel/properties.css index 0928da3a..5306eb5b 100755 --- a/js/panels/properties.reel/properties.css +++ b/js/panels/properties.reel/properties.css | |||
@@ -4,6 +4,21 @@ | |||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | 4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. |
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | /* Cleanup TODO - now that we removed the color toolbar from the tools panel, we no longer load the colortoolbar reel. | ||
8 | Currently the color chips in the property inspector rely on the colortoolbar button style so we | ||
9 | copied the class here. When we do the color feature cleanup we should remove this dependency. | ||
10 | */ | ||
11 | .colortoolbar button { | ||
12 | float: left; | ||
13 | clear: both; | ||
14 | width: 27px; | ||
15 | height: 27px; | ||
16 | background: black; | ||
17 | border: 1px solid #000; | ||
18 | padding: 0; | ||
19 | margin: 0px; | ||
20 | } | ||
21 | |||
7 | .propertiesPanel { | 22 | .propertiesPanel { |
8 | color:#FFF; | 23 | color:#FFF; |
9 | overflow-x: hidden; | 24 | overflow-x: hidden; |
@@ -256,17 +271,17 @@ padding-right:6px; | |||
256 | content: "•"; | 271 | content: "•"; |
257 | } | 272 | } |
258 | 273 | ||
259 | .propertiesPanel input.nj-skinned label { | 274 | .propertiesPanel .checkbox-label { |
260 | position: absolute; | 275 | position: absolute; |
261 | top: 0; | 276 | top: 4px; |
262 | left: 15px; | 277 | padding-left: 5px; |
278 | /*left: 15px;*/ | ||
263 | font-size: 10px; | 279 | font-size: 10px; |
264 | width:55px; | 280 | width:55px; |
265 | text-align: left; | 281 | text-align: left; |
266 | font-weight: normal; | 282 | font-weight: normal; |
267 | color:#FFF; | 283 | color:#FFF; |
268 | } | 284 | } |
269 | |||
270 | .propertiesPanel input[type='radio'].nj-skinned { | 285 | .propertiesPanel input[type='radio'].nj-skinned { |
271 | text-indent: 0px; | 286 | text-indent: 0px; |
272 | line-height: 5px; | 287 | line-height: 5px; |
diff --git a/js/panels/properties.reel/properties.js b/js/panels/properties.reel/properties.js index 3ec48687..fa62c850 100755 --- a/js/panels/properties.reel/properties.js +++ b/js/panels/properties.reel/properties.js | |||
@@ -228,7 +228,7 @@ exports.Properties = Montage.create(Component, { | |||
228 | 228 | ||
229 | if(isRoot) { | 229 | if(isRoot) { |
230 | var backgroundChip = this.customSections[0].content.controls["background"]; | 230 | var backgroundChip = this.customSections[0].content.controls["background"]; |
231 | backgroundChip.color = ElementsMediator.getProperty(el, "background"); | 231 | if(backgroundChip) backgroundChip.color = ElementsMediator.getProperty(el, "background"); |
232 | } | 232 | } |
233 | 233 | ||
234 | var previousInput = this.application.ninja.colorController.colorModel.input; | 234 | var previousInput = this.application.ninja.colorController.colorModel.input; |
diff --git a/js/panels/properties.reel/sections/custom.reel/custom.js b/js/panels/properties.reel/sections/custom.reel/custom.js index 876fe110..49b4414e 100755 --- a/js/panels/properties.reel/sections/custom.reel/custom.js +++ b/js/panels/properties.reel/sections/custom.reel/custom.js | |||
@@ -19,7 +19,7 @@ var HT = require("js/components/hottext.reel").HotText; | |||
19 | var Dropdown = require("js/components/combobox.reel").Combobox; | 19 | var Dropdown = require("js/components/combobox.reel").Combobox; |
20 | var TextField = require("js/components/textfield.reel").TextField; | 20 | var TextField = require("js/components/textfield.reel").TextField; |
21 | var FileInput = require("js/components/ui/file-input.reel").FileInput; | 21 | var FileInput = require("js/components/ui/file-input.reel").FileInput; |
22 | var Checkbox = require("js/components/checkbox.reel").Checkbox; | 22 | var LabelCheckbox = require("js/components/ui/label-checkbox.reel").LabelCheckbox; |
23 | var ColorChip = require("js/components/ui/color-chip.reel").ColorChip; | 23 | var ColorChip = require("js/components/ui/color-chip.reel").ColorChip; |
24 | var Button = require("montage/ui/button.reel").Button; | 24 | var Button = require("montage/ui/button.reel").Button; |
25 | 25 | ||
@@ -77,7 +77,7 @@ exports.CustomSection = Montage.create(Component, { | |||
77 | this.rows.push(tmpRow); | 77 | this.rows.push(tmpRow); |
78 | 78 | ||
79 | } else if(this._fields[i].length === 3) { | 79 | } else if(this._fields[i].length === 3) { |
80 | 80 | ||
81 | } | 81 | } |
82 | 82 | ||
83 | } | 83 | } |
@@ -103,7 +103,7 @@ exports.CustomSection = Montage.create(Component, { | |||
103 | handleChange: { | 103 | handleChange: { |
104 | value:function(event) { | 104 | value:function(event) { |
105 | if(event._event.wasSetByCode) return; | 105 | if(event._event.wasSetByCode) return; |
106 | 106 | ||
107 | var obj = event.currentTarget; | 107 | var obj = event.currentTarget; |
108 | this._dispatchPropEvent({"type": "change", "id": obj.id, "prop": obj.prop, "value": obj.value, "control": obj}); | 108 | this._dispatchPropEvent({"type": "change", "id": obj.id, "prop": obj.prop, "value": obj.value, "control": obj}); |
109 | } | 109 | } |
@@ -262,10 +262,10 @@ exports.CustomSection = Montage.create(Component, { | |||
262 | if(aField.enabled.boundObject) { | 262 | if(aField.enabled.boundObject) { |
263 | // TODO - For now, always bind to this.controls[someProperty] | 263 | // TODO - For now, always bind to this.controls[someProperty] |
264 | Object.defineBinding(obj, "enabled", { | 264 | Object.defineBinding(obj, "enabled", { |
265 | boundObject: this.controls, | 265 | boundObject: this.controls, |
266 | boundObjectPropertyPath: aField.enabled.boundProperty, | 266 | boundObjectPropertyPath: aField.enabled.boundProperty, |
267 | oneway: false | 267 | oneway: false |
268 | }); | 268 | }); |
269 | } else { | 269 | } else { |
270 | obj.enabled = aField.enabled; | 270 | obj.enabled = aField.enabled; |
271 | } | 271 | } |
@@ -349,7 +349,7 @@ exports.CustomSection = Montage.create(Component, { | |||
349 | value: function(aField) { | 349 | value: function(aField) { |
350 | 350 | ||
351 | // Generate Textfield | 351 | // Generate Textfield |
352 | var obj = Checkbox.create(); | 352 | var obj = LabelCheckbox.create(); |
353 | 353 | ||
354 | // Set Values for TextField | 354 | // Set Values for TextField |
355 | if (aField.id) obj.id = aField.id; | 355 | if (aField.id) obj.id = aField.id; |