aboutsummaryrefslogtreecommitdiff
path: root/js/panels/PanelContainer.reel
diff options
context:
space:
mode:
authorhwc4872012-07-09 16:08:02 -0700
committerhwc4872012-07-09 16:08:02 -0700
commit5085d0f67df89a21715308956004164597a6ba79 (patch)
tree2c896163143a66331205a39b0a3b1b45d51bf12a /js/panels/PanelContainer.reel
parent51f1691f792dbda9b740ded8aa0457c9406db156 (diff)
parent84b3327bd92faafab7954b5eb64c7abe24a3fe13 (diff)
downloadninja-5085d0f67df89a21715308956004164597a6ba79.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into GridFixes
Conflicts: js/helper-classes/3D/StageLine.js
Diffstat (limited to 'js/panels/PanelContainer.reel')
-rwxr-xr-xjs/panels/PanelContainer.reel/PanelContainer.html8
-rwxr-xr-xjs/panels/PanelContainer.reel/PanelContainer.js16
2 files changed, 12 insertions, 12 deletions
diff --git a/js/panels/PanelContainer.reel/PanelContainer.html b/js/panels/PanelContainer.reel/PanelContainer.html
index c84315d3..77bb23db 100755
--- a/js/panels/PanelContainer.reel/PanelContainer.html
+++ b/js/panels/PanelContainer.reel/PanelContainer.html
@@ -1,4 +1,4 @@
1<!DOCTYPE html> 1<!doctype html>
2<!-- <copyright> 2<!-- <copyright>
3Copyright (c) 2012, Motorola Mobility, Inc 3Copyright (c) 2012, Motorola Mobility, Inc
4All Rights Reserved. 4All Rights Reserved.
@@ -149,10 +149,10 @@ POSSIBILITY OF SUCH DAMAGE.
149 } 149 }
150 </script> 150 </script>
151 151
152 </head> 152 </head>
153<body> 153<body>
154 <section data-montage-id="panelContainer"> 154 <section data-montage-id="panelContainer">
155 <article id="panels" class="panels"> 155 <article id="panels" class="panels">
156 <article data-montage-id="panel_0"></article> 156 <article data-montage-id="panel_0"></article>
157 <article data-montage-id="panel_1"></article> 157 <article data-montage-id="panel_1"></article>
158 <article data-montage-id="panel_2"></article> 158 <article data-montage-id="panel_2"></article>
@@ -161,7 +161,7 @@ POSSIBILITY OF SUCH DAMAGE.
161 <article data-montage-id="panel_5"></article> 161 <article data-montage-id="panel_5"></article>
162 <article data-montage-id="panel_6"></article> 162 <article data-montage-id="panel_6"></article>
163 <article data-montage-id="panel_7"></article> 163 <article data-montage-id="panel_7"></article>
164 </article> 164 </article>
165 </section> 165 </section>
166</body> 166</body>
167</html> 167</html>
diff --git a/js/panels/PanelContainer.reel/PanelContainer.js b/js/panels/PanelContainer.reel/PanelContainer.js
index 6718d104..07203088 100755
--- a/js/panels/PanelContainer.reel/PanelContainer.js
+++ b/js/panels/PanelContainer.reel/PanelContainer.js
@@ -27,13 +27,13 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28POSSIBILITY OF SUCH DAMAGE. 28POSSIBILITY OF SUCH DAMAGE.
29</copyright> */ 29</copyright> */
30 30
31/* 31/*
32Panel Container - A container for other panels 32Panel Container - A container for other panels
33*/ 33*/
34var Montage = require("montage/core/core").Montage, 34var Montage = require("montage/core/core").Montage,
35 Component = require("montage/ui/component").Component; 35 Component = require("montage/ui/component").Component;
36 36
37exports.PanelContainer = Montage.create(Component, { 37exports.PanelContainer = Montage.create(Component, {
38 38
39 panelSplitter: { 39 panelSplitter: {
@@ -167,19 +167,19 @@ exports.PanelContainer = Montage.create(Component, {
167 this.application.localStorage.setItem("panels", this.currentPanelState); 167 this.application.localStorage.setItem("panels", this.currentPanelState);
168 } 168 }
169 }, 169 },
170 170
171 prepareForDraw: { 171 prepareForDraw: {
172 value: function() { 172 value: function() {
173 window.addEventListener("resize", this, false); 173 window.addEventListener("resize", this, false);
174 } 174 }
175 }, 175 },
176 176
177 handlePanelResizing: { 177 handlePanelResizing: {
178 value: function(e) { 178 value: function(e) {
179 this._setPanelsSizes(e.target); 179 this._setPanelsSizes(e.target);
180 } 180 }
181 }, 181 },
182 182
183 handleResize: { 183 handleResize: {
184 value: function(e) { 184 value: function(e) {
185 this._redrawPanels(null, true); 185 this._redrawPanels(null, true);
@@ -220,7 +220,7 @@ exports.PanelContainer = Montage.create(Component, {
220 220
221 } 221 }
222 }, 222 },
223 223
224 _setPanelsSizes: { 224 _setPanelsSizes: {
225 value: function(panelActivated) { 225 value: function(panelActivated) {
226 var availablePanels = this.panelsAvailable(); 226 var availablePanels = this.panelsAvailable();
@@ -283,7 +283,7 @@ exports.PanelContainer = Montage.create(Component, {
283 } 283 }
284 } 284 }
285 }, 285 },
286 286
287 handleAction: { 287 handleAction: {
288 value: function(e) { 288 value: function(e) {
289 var unlockPanels = true; 289 var unlockPanels = true;
@@ -315,5 +315,5 @@ exports.PanelContainer = Montage.create(Component, {
315 } 315 }
316 } 316 }
317 } 317 }
318 318
319}); 319});