aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Collapser.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/Collapser.js')
-rw-r--r--js/panels/Timeline/Collapser.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/js/panels/Timeline/Collapser.js b/js/panels/Timeline/Collapser.js
index 32733b0a..88314c8b 100644
--- a/js/panels/Timeline/Collapser.js
+++ b/js/panels/Timeline/Collapser.js
@@ -179,24 +179,14 @@ var Montage = require("montage/core/core").Montage,
179 179
180 prepareForDraw: { 180 prepareForDraw: {
181 value: function() { 181 value: function() {
182 // Add a click listener to the label for expand/collapse 182
183 /*
184 if (this.isLabelClickable) {
185 this.clicker.identifier = "collapserLabel";
186 this.clicker.addEventListener("click", this, false);
187 }
188 */
189 // Get the original value of the overflow property: 183 // Get the original value of the overflow property:
190 this._origOverflowValue = window.getComputedStyle(this.myContent, null).getPropertyValue("overflow"); 184 this._origOverflowValue = window.getComputedStyle(this.myContent, null).getPropertyValue("overflow");
191 console.log("collapser: this.isCollapsed " + this.isCollapsed)
192 if (this.isCollapsed === false) { 185 if (this.isCollapsed === false) {
193 this.myContent.style.height = "auto"; 186 this.myContent.style.height = "auto";
194 } 187 }
195 188
196 /* 189
197 * Removed because of expense. This disables the feature of having the
198 * component dynamically expand/collapse the content on init based on properties;
199 * Now default state of component must be set in CSS.
200 // If the content area is supposed to start out collapsed: 190 // If the content area is supposed to start out collapsed:
201 if (this.isCollapsed) { 191 if (this.isCollapsed) {
202 this.myContent.style.height = "0px"; 192 this.myContent.style.height = "0px";
@@ -211,7 +201,6 @@ var Montage = require("montage/core/core").Montage,
211 this.myContent.classList.remove(this.collapsedClass); 201 this.myContent.classList.remove(this.collapsedClass);
212 this.clicker.classList.remove(this.collapsedClass); 202 this.clicker.classList.remove(this.collapsedClass);
213 } 203 }
214 */
215 } 204 }
216 }, 205 },
217 draw: { 206 draw: {