Fix bug with strange offsets in Gantt chart task bars.
This commit is contained in:
parent
f3f511d0c8
commit
c208b956a3
2 changed files with 2 additions and 6 deletions
|
|
@ -1623,12 +1623,7 @@ sub www_drawGanttChart {
|
|||
my $multiplier = $isMSIE ? 22 : 20;
|
||||
$hash->{'task.div.top'} = $divTop + ($multiplier*$taskCount);
|
||||
|
||||
#Interval includes current day if the start date is not the start of the month so add 1
|
||||
my $adder = 1;
|
||||
if($dt->epochToSet($startMonth) eq $dt->epochToSet($startDate)) {
|
||||
$adder = 0;
|
||||
}
|
||||
my $daysFromStart = ($dt->getDaysInInterval($startMonth,$startDate)+$adder);
|
||||
my $daysFromStart = $dt->getDaysInInterval($startMonth,$startDate);
|
||||
#Add day part of predecessor if necessary
|
||||
#$eh->warn("Task $seq is currently $daysFromStart days from the first day on ".$dt->epochToHuman($startDate));
|
||||
my $daysLeft = $daysFromStart;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue