Dotted line representing current day aligned to day middle

FEA: ItEr70S04BugFixing
This commit is contained in:
Lorenzo Tilve 2011-02-09 20:27:32 +01:00
parent 73f86dbd33
commit d20003bac4

View file

@ -94,8 +94,9 @@ public final class DetailItem {
public void markCurrentDay() {
if (this.startDate.isBeforeNow() && this.endDate.isAfterNow()) {
int offsetInPx = Math.round((((float) Days.daysBetween(
this.startDate, new DateTime()).getDays()) / ((float) Days
int offsetInPx = Math
.round(((((float) Days.daysBetween(this.startDate,
new DateTime()).getDays()) + (float) 0.5) / ((float) Days
.daysBetween(this.startDate, this.endDate).getDays()))
* this.size);
this.markCurrentDay(offsetInPx);