@@ -258,7 +258,7 @@ define(['d3'], function() {
258
258
this . currentBranch = config . currentBranch || 'master' ;
259
259
260
260
this . width = config . width ;
261
- this . height = config . height || 400 ;
261
+ this . height = 400 ;
262
262
this . orginalBaseLine = config . baseLine ;
263
263
this . baseLine = this . height * ( config . baseLine || 0.9 ) ;
264
264
@@ -528,7 +528,7 @@ define(['d3'], function() {
528
528
529
529
svg . attr ( 'id' , this . name )
530
530
. attr ( 'width' , this . width )
531
- . attr ( 'height' , this . isRemote ? this . height + 150 : this . height ) ;
531
+ . attr ( 'height' , this . height + 150 ) ;
532
532
533
533
if ( this . isRemote ) {
534
534
svg . append ( 'svg:text' )
@@ -603,12 +603,14 @@ define(['d3'], function() {
603
603
var perc = this . height . substring ( 0 , this . height . length - 1 ) / 100.0 ;
604
604
var baseLineCalcHeight = Math . round ( this . svg . node ( ) . parentNode . offsetHeight * perc ) - 65 ;
605
605
var newBaseLine = Math . round ( baseLineCalcHeight * ( this . originalBaseLine || 0.6 ) ) ;
606
+
606
607
if ( newBaseLine !== this . baseLine ) {
607
608
this . baseLine = newBaseLine ;
608
609
this . initialCommit . cy = newBaseLine ;
609
610
this . svg . attr ( 'height' , baseLineCalcHeight ) ;
610
611
}
611
612
}
613
+
612
614
this . _calculatePositionData ( ) ;
613
615
this . _calculatePositionData ( ) ; // do this twice to make sure
614
616
this . _renderCircles ( ) ;
0 commit comments