ItEr47S11CUVisualizacionResponsabilidadesTRaballoNaPlanificacionItEr46S12: Fixing problem.

After a reload resources text, e.g. when moving a task, the resize
capability was lost. yui-resize css class must be added.
This commit is contained in:
Óscar González Fernández 2010-02-08 23:48:25 +01:00
parent 1f900917f7
commit b194d5cbaf

View file

@ -206,12 +206,17 @@ public class TaskComponent extends Div implements AfterCompose {
if (canShowResourcesText()) {
smartUpdate("resourcesText", getResourcesText());
}
String cssClass = isSubcontracted() ? "box subcontracted-task"
: "box standard-task";
String cssClass = calculateCssClass();
response("setClass", new AuInvoke(TaskComponent.this,
"setClass", cssClass));
}
private String calculateCssClass() {
return (isSubcontracted() ? "box subcontracted-task"
: "box standard-task")
+ (isResizingTasksEnabled() ? " yui-resize" : "");
}
};
this.task.addReloadListener(reloadResourcesTextRequested);
}