@@ -457,6 +457,7 @@ exports.GanttChart = function (pDiv, pFormat) {
457
457
this . setChartTable ( vTmpTab ) ;
458
458
draw_utils_1 . newNode ( vTmpDiv , 'div' , null , 'rhscrpad' , null , null , vTaskLeftPx + 1 ) ;
459
459
var vTmpTBody = draw_utils_1 . newNode ( vTmpTab , 'tbody' ) ;
460
+ var vTmpTFoot = draw_utils_1 . newNode ( vTmpTab , 'tfoot' ) ;
460
461
events_1 . syncScroll ( [ vTmpContentTabWrapper , vTmpDiv ] , 'scrollTop' ) ;
461
462
events_1 . syncScroll ( [ gChartLbl , vTmpDiv ] , 'scrollLeft' ) ;
462
463
events_1 . syncScroll ( [ vTmpContentTabWrapper , gListLbl ] , 'scrollLeft' ) ;
@@ -514,7 +515,7 @@ exports.GanttChart = function (pDiv, pFormat) {
514
515
}
515
516
else {
516
517
var vTaskWidth = vTaskRightPx ;
517
- // Draw Group Bar which has outer div with inner group div
518
+ // Draw Group Bar which has outer div with inner group div
518
519
// and several small divs to left and right to create angled-end indicators
519
520
if ( this . vTaskList [ i ] . getGroup ( ) ) {
520
521
vTaskWidth = ( vTaskWidth > this . vMinGpLen && vTaskWidth < this . vMinGpLen * 2 ) ? this . vMinGpLen * 2 : vTaskWidth ; // Expand to show two end points
@@ -626,7 +627,16 @@ exports.GanttChart = function (pDiv, pFormat) {
626
627
}
627
628
}
628
629
// Include the footer with the days/week/month...
629
- vTmpTBody . appendChild ( vDateRow . cloneNode ( true ) ) ;
630
+ if ( vSingleCell ) {
631
+ var vTmpTFootTRow = draw_utils_1 . newNode ( vTmpTFoot , 'tr' ) ;
632
+ var vTmpTFootTCell = draw_utils_1 . newNode ( vTmpTFootTRow , 'td' , null , null , null , '100%' ) ;
633
+ var vTmpTFootTCellTable = draw_utils_1 . newNode ( vTmpTFootTCell , 'table' , null , 'gcharttableh' , null , '100%' ) ;
634
+ var vTmpTFootTCellTableTBody = draw_utils_1 . newNode ( vTmpTFootTCellTable , 'tbody' ) ;
635
+ vTmpTFootTCellTableTBody . appendChild ( vDateRow . cloneNode ( true ) ) ;
636
+ }
637
+ else {
638
+ vTmpTFoot . appendChild ( vDateRow . cloneNode ( true ) ) ;
639
+ }
630
640
return { vRightTable : vRightTable } ;
631
641
} ;
632
642
this . drawColsChart = function ( vNumCols , vTmpRow , taskCellWidth ) {
@@ -3739,8 +3749,12 @@ exports.processRows = function (pList, pID, pRow, pLevel, pOpen, pUseSort, vDebu
3739
3749
if ( pList [ pRow ] . getGroupMinPlanEnd ( ) != null && pList [ pRow ] . getGroupMinPlanEnd ( ) > vMaxPlanDate ) {
3740
3750
vMaxPlanDate = pList [ pRow ] . getGroupMinPlanEnd ( ) ;
3741
3751
}
3742
- pList [ pRow ] . setPlanStart ( vMinPlanDate ) ;
3743
- pList [ pRow ] . setPlanEnd ( vMaxPlanDate ) ;
3752
+ if ( vMinPlanDate ) {
3753
+ pList [ pRow ] . setPlanStart ( vMinPlanDate ) ;
3754
+ }
3755
+ if ( vMaxPlanDate ) {
3756
+ pList [ pRow ] . setPlanEnd ( vMaxPlanDate ) ;
3757
+ }
3744
3758
pList [ pRow ] . setNumKid ( vNumKid ) ;
3745
3759
pList [ pRow ] . setWeight ( vWeight ) ;
3746
3760
pList [ pRow ] . setCompVal ( Math . ceil ( vCompSum / vWeight ) ) ;
0 commit comments