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:
parent
1f900917f7
commit
b194d5cbaf
1 changed files with 7 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue