Dotted line representing current day aligned to day middle
FEA: ItEr70S04BugFixing
This commit is contained in:
parent
73f86dbd33
commit
d20003bac4
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue