From cdcc677c827b65e3c689d4207c0117f94e4d6d57 Mon Sep 17 00:00:00 2001 From: Kruti Shah Date: Mon, 16 Jul 2012 16:27:58 -0700 Subject: Styling of Zoom Slider + Grid Cut off limit taken care of + Hot text Bug (left,top,width,height) changing it now changes the element on stage Signed-off-by: Kruti Shah --- js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js') diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 88b37563..0bf025ab 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js @@ -505,11 +505,13 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { }, millisecondsOffset:{ get:function () { + return this._millisecondsOffset; }, set:function (newVal) { if (newVal !== this._millisecondsOffset) { + this.tempValue = newVal; var tempValue = (1/newVal) * 1000000; newVal = tempValue; @@ -1704,6 +1706,22 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { } }, + zoomTrackContainerWidthChange:{ + value:function () { + + this.tempValue = this.tempValue/1000; + this.tempValue *= 30; + + this.container_tracks.style.width = (this.tempValue * 80) + "px"; + this.master_track.style.width = (this.tempValue * 80) + "px"; + this.time_markers.style.width = (this.tempValue * 80) + "px"; + if (this.timeMarkerHolder) { + this.time_markers.removeChild(this.timeMarkerHolder); + } + this.drawTimeMarkers(); + } + }, + handleLayerScroll: { value:function () { this._areTracksScrolling = true; -- cgit v1.2.3