ItEr22S12CUVistaRecursosTempoPorProxectoItEr21S07: Increasing the width of .row_resourceload to expand the borders.

It does not work well when the scroll appears
This commit is contained in:
Óscar González Fernández 2009-08-23 13:28:51 +02:00
parent c27a7f002b
commit 45ea897566
2 changed files with 11 additions and 2 deletions

View file

@ -38,6 +38,8 @@ public class ResourceLoadList extends XulElement {
public void zoomLevelChanged(ZoomLevel detailLevel) {
response(null, new AuInvoke(ResourceLoadList.this,
"adjustTimeTrackerSize"));
response(null, new AuInvoke(ResourceLoadList.this,
"adjustResourceLoadRows"));
}
};
}

View file

@ -26,11 +26,18 @@ function addResourcesLoadListMethods(object) {
zoom_buttons().style["left"] = scroll+"px";
});
scrollSync.synchXChangeTo(timetracker);
}
};
object.adjustTimeTrackerSize = function(cmp) {
watermark().style["height"] = cmp.clientHeight + "px";
timetracker().style["width"] = cmp.clientWidth + "px";
}
};
object.adjustResourceLoadRows = function(cmp) {
YAHOO.util.Selector.query('.row_resourceload').each(function(node){
node.style["width"] = cmp.clientWidth + "px";
});
};
return object;
}