@@ -258,7 +258,7 @@ define(['d3'], function() {
258258 this . currentBranch = config . currentBranch || 'master' ;
259259
260260 this . width = config . width ;
261- this . height = config . height || 400 ;
261+ this . height = 400 ;
262262 this . orginalBaseLine = config . baseLine ;
263263 this . baseLine = this . height * ( config . baseLine || 0.9 ) ;
264264
@@ -528,7 +528,7 @@ define(['d3'], function() {
528528
529529 svg . attr ( 'id' , this . name )
530530 . attr ( 'width' , this . width )
531- . attr ( 'height' , this . isRemote ? this . height + 150 : this . height ) ;
531+ . attr ( 'height' , this . height + 150 ) ;
532532
533533 if ( this . isRemote ) {
534534 svg . append ( 'svg:text' )
@@ -603,12 +603,14 @@ define(['d3'], function() {
603603 var perc = this . height . substring ( 0 , this . height . length - 1 ) / 100.0 ;
604604 var baseLineCalcHeight = Math . round ( this . svg . node ( ) . parentNode . offsetHeight * perc ) - 65 ;
605605 var newBaseLine = Math . round ( baseLineCalcHeight * ( this . originalBaseLine || 0.6 ) ) ;
606+
606607 if ( newBaseLine !== this . baseLine ) {
607608 this . baseLine = newBaseLine ;
608609 this . initialCommit . cy = newBaseLine ;
609610 this . svg . attr ( 'height' , baseLineCalcHeight ) ;
610611 }
611612 }
613+
612614 this . _calculatePositionData ( ) ;
613615 this . _calculatePositionData ( ) ; // do this twice to make sure
614616 this . _renderCircles ( ) ;
0 commit comments