Added null check and fixed scroll to row for zk6
This commit is contained in:
parent
c82793df29
commit
33fd4e4ae3
|
@ -6,20 +6,24 @@ function ad_deferRenderBorderLayout(uuid, timeout) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _ad_deferBDL(uuid) {
|
function _ad_deferBDL(uuid) {
|
||||||
zk.Widget.$(uuid).resize();
|
var cmp = zk.Widget.$(uuid);
|
||||||
|
if (cmp) { cmp.resize(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
function ad_closeBuble(uuid) {
|
function ad_closeBuble(uuid) {
|
||||||
var cmp = zk.Widget.$(uuid);
|
var cmp = zk.Widget.$(uuid);
|
||||||
for(var i=0;i<cmp.bandInfos.length;i++){
|
if (cmp) {
|
||||||
cmp.instance.getBand(i).closeBubble();
|
for(var i=0;i<cmp.bandInfos.length;i++){
|
||||||
|
cmp.instance.getBand(i).closeBubble();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrollToRow(uuid){
|
function scrollToRow(uuid){
|
||||||
var cmp = zk.Widget.$(uuid);
|
var cmp = zk.Widget.$(uuid);
|
||||||
cmp.$n().style.display='inline';
|
if (cmp) {
|
||||||
cmp.focus();
|
cmp.scrollIntoView();
|
||||||
cmp.$n().style.display='none';
|
cmp.focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue