diff options
author | Nivesh Rajbhandari | 2012-03-19 14:19:48 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-19 14:20:10 -0700 |
commit | ea439c4471948cb7e1dbb98bfa9c2ddc374d48e7 (patch) | |
tree | d9113bee7667fc6a65c36bcdf8f92d174917f0b1 /js/panels | |
parent | ec58642a7b31165890eb5bef7d95ce59dd0c34a0 (diff) | |
download | ninja-ea439c4471948cb7e1dbb98bfa9c2ddc374d48e7.tar.gz |
Maps - Apply default width and height styles to components if specified. Change default location to Sunnyvale.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/panels')
-rwxr-xr-x | js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js index 87c68a52..599eeda3 100755 --- a/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js +++ b/js/panels/Components/ComponentsPanelBase.reel/ComponentsPanelBase.js | |||
@@ -291,6 +291,13 @@ var ComponentsPanelBase = exports.ComponentsPanelBase = Montage.create(Component | |||
291 | '-webkit-transform' : 'perspective(1400) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)' | 291 | '-webkit-transform' : 'perspective(1400) matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)' |
292 | }; | 292 | }; |
293 | 293 | ||
294 | var defaultStyles = component.defaultStyles; | ||
295 | if(defaultStyles) { | ||
296 | for(var n in defaultStyles) { | ||
297 | styles[n] = defaultStyles[n]; | ||
298 | } | ||
299 | } | ||
300 | |||
294 | that.application.ninja.currentDocument.setComponentInstance(instance, element); | 301 | that.application.ninja.currentDocument.setComponentInstance(instance, element); |
295 | 302 | ||
296 | NJevent("elementAdding", {"el": element, "data":styles}); | 303 | NJevent("elementAdding", {"el": element, "data":styles}); |