core-jgi/org.adempiere.ui.zk/js/layout.js

29 lines
578 B
JavaScript

function ad_deferRenderBorderLayout(uuid, timeout) {
var meta = zk.Widget.$(uuid);
if (meta) {
setTimeout("_ad_deferBDL('"+uuid+"')", timeout);
}
}
function _ad_deferBDL(uuid) {
var cmp = zk.Widget.$(uuid);
if (cmp) { cmp.resize(); }
}
function ad_closeBuble(uuid) {
var cmp = zk.Widget.$(uuid);
if (cmp) {
for(var i=0;i<cmp.bandInfos.length;i++){
cmp.instance.getBand(i).closeBubble();
}
}
}
function scrollToRow(uuid){
var cmp = zk.Widget.$(uuid);
if (cmp) {
cmp.scrollIntoView();
cmp.focus();
}
}