Bug #1493: Modified task deadline mark position to show it just after the deadline date

FEA: ItEr76S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2012-07-10 15:49:52 +02:00
parent 26ea85a1ed
commit 201bb6e363

View file

@ -476,9 +476,10 @@ public class TaskComponent extends Div implements AfterCompose {
}
private void updateDeadline() {
// Task mark is placed after midnight date of the deadline day
if (task.getDeadline() != null) {
String position = (getMapper().toPixels(
LocalDate.fromDateFields(task.getDeadline())) - HALF_DEADLINE_MARK)
LocalDate.fromDateFields(task.getDeadline()).plusDays(1)) - HALF_DEADLINE_MARK)
+ "px";
response(null, new AuInvoke(this, "moveDeadline", position));
} else {