ItEr59S04ValidacionEProbasFuncionaisItEr58S04: Shifted right consolidation mark till the end of last consolidated day
This commit is contained in:
parent
633d9f7e30
commit
d98e090ce5
2 changed files with 4 additions and 2 deletions
|
|
@ -62,6 +62,8 @@ public class TaskComponent extends Div implements AfterCompose {
|
|||
private static final Log LOG = LogFactory.getLog(TaskComponent.class);
|
||||
|
||||
private static final int HEIGHT_PER_TASK = 10;
|
||||
private static final int CONSOLIDATED_MARK_HALF_WIDTH = 3;
|
||||
|
||||
|
||||
private static Pattern pixelsSpecificationPattern = Pattern
|
||||
.compile("\\s*(\\d+)px\\s*;?\\s*");
|
||||
|
|
@ -438,7 +440,7 @@ public class TaskComponent extends Div implements AfterCompose {
|
|||
response(null, new AuInvoke(this, "moveDeadline", position));
|
||||
}
|
||||
if (task.getConsolidatedline() != null) {
|
||||
String position = getMapper().toPixels(task.getConsolidatedline())
|
||||
String position = (getMapper().toPixels(task.getConsolidatedline()) - CONSOLIDATED_MARK_HALF_WIDTH)
|
||||
+ "px";
|
||||
response(null, new AuInvoke(this, "moveConsolidatedline", position));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -552,7 +552,7 @@ public class TaskElementAdapter implements ITaskElementAdapter {
|
|||
if (consolidatedline == null) {
|
||||
return null;
|
||||
}
|
||||
return consolidatedline.minusDays(1).toDateTimeAtStartOfDay()
|
||||
return consolidatedline.toDateTimeAtStartOfDay()
|
||||
.toDate();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue