Skip to content
This repository has been archived by the owner on Jan 31, 2018. It is now read-only.

Commit

Permalink
Move resizing into timebar because it already does containerWidth cal…
Browse files Browse the repository at this point in the history
…culations [#566]
  • Loading branch information
jbuck committed Apr 20, 2012
1 parent 445a317 commit eeb63da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/timeline/scrubber.js
Expand Up @@ -193,8 +193,6 @@ define( [], function(){
setNodePosition();
}; //update

window.addEventListener( "resize", _this.update, false );

function checkMedia(){
setNodePosition();
} //checkMedia
Expand Down
6 changes: 3 additions & 3 deletions src/timeline/timebar.js
Expand Up @@ -106,9 +106,9 @@ define( [ "util/lang", "./scrubber" ], function( util, Scrubber ) {
_scrubber.update( containerWidth, zoom );
}

_tracksContainer.element.addEventListener( "scroll", function() {
drawTicks();
}, false );
_tracksContainer.element.addEventListener( "scroll", drawTicks, false );

window.addEventListener( "resize", drawTicks, false );

this.update = function( zoom ) {
drawTicks( zoom );
Expand Down

0 comments on commit eeb63da

Please sign in to comment.