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:
parent
c27a7f002b
commit
45ea897566
2 changed files with 11 additions and 2 deletions
|
|
@ -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"));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue