ItEr59S07RFAspectosGraficosRecursoLimitantesItEr58S08: Recalculations for queue task rows width

This commit is contained in:
Lorenzo Tilve 2010-06-09 17:56:47 +02:00 committed by Javier Moran Rua
parent efd1c1674b
commit 294b7680df
2 changed files with 4 additions and 1 deletions

View file

@ -125,6 +125,8 @@ public class QueueListComponent extends HtmlMacroComponent implements
for (QueueComponent each : fromQueueToComponent.values()) {
each.afterCompose();
}
response(null, new AuInvoke(QueueListComponent.this,
"adjustResourceLoadRows"));
}
public List<QueueTask> getQueueTasks() {

View file

@ -106,8 +106,9 @@ function addLimitingResourcesListMethods(object) {
};
object.adjustResourceLoadRows = function(cmp) {
var width = YAHOO.util.Selector.query('.rightpanellayout #timetracker .z-grid-header')[0].clientWidth + "px";
YAHOO.util.Selector.query('.row_resourceload').each(function(node) {
node.style["width"] = cmp.clientWidth + "px";
node.style["width"] = width;
});
};