Permalink
Browse files

Move resizing into timebar because it already does containerWidth cal…

…culations [#566]
  • Loading branch information...
1 parent 445a317 commit eeb63da9f4c67009e6cecbb909e7e0859dce5e3e @jbuck jbuck committed Apr 20, 2012
Showing with 3 additions and 5 deletions.
  1. +0 −2 src/timeline/scrubber.js
  2. +3 −3 src/timeline/timebar.js
@@ -193,8 +193,6 @@ define( [], function(){
setNodePosition();
}; //update
- window.addEventListener( "resize", _this.update, false );
-
function checkMedia(){
setNodePosition();
} //checkMedia
@@ -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 );

0 comments on commit eeb63da

Please sign in to comment.