ItEr13S14ArquitecturaClientesItEr11S12: When adding tasks the height of task list is updated.

This commit is contained in:
Óscar González Fernández 2009-06-16 22:07:28 +02:00 committed by Javier Moran Rua
parent 967c18eaf1
commit 361f3ea7d3

View file

@ -96,6 +96,9 @@ public class TaskList extends XulElement implements AfterCompose {
task.afterCompose();
if (relocate) {
response(null, new AuInvoke(task, "recolocateAfterAdding"));
setHeight(getHeight());// forcing smart update
adjustZoomColumnsHeight();
getGanttPanel().getDependencyList().redrawDependencies();
}
}
@ -198,8 +201,7 @@ public class TaskList extends XulElement implements AfterCompose {
for (Task task : getTasks()) {
task.zoomChanged();
}
response("adjust_height", new AuInvoke(TaskList.this,
"adjust_height"));
adjustZoomColumnsHeight();
}
};
getTimeTracker().addZoomListener(zoomLevelChangedListener);
@ -237,4 +239,8 @@ public class TaskList extends XulElement implements AfterCompose {
return taskEditFormComposer;
}
private void adjustZoomColumnsHeight() {
response("adjust_height", new AuInvoke(TaskList.this, "adjust_height"));
}
}