equal
deleted
inserted
replaced
15 IriSP.SegmentsWidget.prototype.draw = function() { |
15 IriSP.SegmentsWidget.prototype.draw = function() { |
16 |
16 |
17 var self = this; |
17 var self = this; |
18 var annotations = this._serializer._data.annotations; |
18 var annotations = this._serializer._data.annotations; |
19 |
19 |
20 this.selector.append("<div style='position: absolute; z-index: 100; width: 1px; height: 20px; background-color: black;'></div>"); |
20 this.selector.css("overflow", "auto"); // clear the floats - FIXME : to refactor ? |
|
21 this.selector.append("<div style='position: absolute; z-index: 100; width: 1px; height: 20px; background-color: white;'></div>"); |
21 this.positionMarker = this.selector.children(":first"); |
22 this.positionMarker = this.selector.children(":first"); |
22 |
23 |
23 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater)); |
24 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.positionUpdater)); |
24 |
25 |
25 this.selector.after("<div class='cleaner'></div>"); // we need to do this because the segments are floated |
26 this.selector.after("<div class='cleaner'></div>"); // we need to do this because the segments are floated |