diff options
Diffstat (limited to 'js/panels/PanelContainer.reel')
-rwxr-xr-x | js/panels/PanelContainer.reel/PanelContainer.html | 8 | ||||
-rwxr-xr-x | js/panels/PanelContainer.reel/PanelContainer.js | 16 |
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> |
3 | Copyright (c) 2012, Motorola Mobility, Inc | 3 | Copyright (c) 2012, Motorola Mobility, Inc |
4 | All Rights Reserved. | 4 | All 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) | |||
27 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 27 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
28 | POSSIBILITY OF SUCH DAMAGE. | 28 | POSSIBILITY OF SUCH DAMAGE. |
29 | </copyright> */ | 29 | </copyright> */ |
30 | 30 | ||
31 | /* | 31 | /* |
32 | Panel Container - A container for other panels | 32 | Panel Container - A container for other panels |
33 | */ | 33 | */ |
34 | var Montage = require("montage/core/core").Montage, | 34 | var Montage = require("montage/core/core").Montage, |
35 | Component = require("montage/ui/component").Component; | 35 | Component = require("montage/ui/component").Component; |
36 | 36 | ||
37 | exports.PanelContainer = Montage.create(Component, { | 37 | exports.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 | }); |