diff options
author | Jon Reid | 2012-05-01 15:28:05 -0700 |
---|---|---|
committer | Jon Reid | 2012-05-01 15:28:05 -0700 |
commit | 8c1fda5e59b9d88b69e0b4a2bd57590ef451643c (patch) | |
tree | e055136fbf5ae15373970120c1fc7acdaae4f68c /js/panels/Timeline/TimelineTrack.reel | |
parent | b4975bc0e45783111a1d4efe69a7cc7ac3c72ef0 (diff) | |
download | ninja-8c1fda5e59b9d88b69e0b4a2bd57590ef451643c.tar.gz |
Timeline: Expand/collapse state of layers now mantained across document
switching.
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index efeeba00..f32592ed 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -31,6 +31,11 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
31 | } | 31 | } |
32 | } | 32 | } |
33 | }, | 33 | }, |
34 | |||
35 | _isFirstDraw: { | ||
36 | value: true | ||
37 | }, | ||
38 | |||
34 | _isVisible:{ | 39 | _isVisible:{ |
35 | value: true | 40 | value: true |
36 | }, | 41 | }, |
@@ -448,6 +453,33 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
448 | } | 453 | } |
449 | } | 454 | } |
450 | } | 455 | } |
456 | |||
457 | |||
458 | if (this._isFirstDraw === true) { | ||
459 | |||
460 | if (this.isMainCollapsed === false) { | ||
461 | this._mainCollapser.myContent.style.height = "auto"; | ||
462 | this._mainCollapser.myContent.classList.remove(this._mainCollapser.collapsedClass); | ||
463 | this._mainCollapser.clicker.classList.remove(this._mainCollapser.collapsedClass); | ||
464 | } | ||
465 | if (this.isPositionCollapsed === false) { | ||
466 | this._positionCollapser.myContent.style.height = "auto"; | ||
467 | this._positionCollapser.myContent.classList.remove(this._positionCollapser.collapsedClass); | ||
468 | this._positionCollapser.clicker.classList.remove(this._positionCollapser.collapsedClass); | ||
469 | } | ||
470 | if (this.isTransformCollapsed === false) { | ||
471 | this._transformCollapser.myContent.style.height = "auto"; | ||
472 | this._transformCollapser.myContent.classList.remove(this._transformCollapser.collapsedClass); | ||
473 | this._transformCollapser.clicker.classList.remove(this._transformCollapser.collapsedClass); | ||
474 | } | ||
475 | if (this.isStyleCollapsed === false) { | ||
476 | this._styleCollapser.myContent.style.height = "auto"; | ||
477 | this._styleCollapser.myContent.classList.remove(this._styleCollapser.collapsedClass); | ||
478 | this._styleCollapser.clicker.classList.remove(this._styleCollapser.collapsedClass); | ||
479 | } | ||
480 | this._isFirstDraw = false; | ||
481 | } | ||
482 | |||
451 | } | 483 | } |
452 | }, | 484 | }, |
453 | 485 | ||