From 33fd4e4ae3c7ef375ef05edd04bbc80c020500d6 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 5 Mar 2012 12:52:25 +0800 Subject: [PATCH] Added null check and fixed scroll to row for zk6 --- org.adempiere.ui.zk/js/layout.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/org.adempiere.ui.zk/js/layout.js b/org.adempiere.ui.zk/js/layout.js index 08808453ef..567965dceb 100644 --- a/org.adempiere.ui.zk/js/layout.js +++ b/org.adempiere.ui.zk/js/layout.js @@ -6,20 +6,24 @@ function ad_deferRenderBorderLayout(uuid, timeout) { } function _ad_deferBDL(uuid) { - zk.Widget.$(uuid).resize(); + var cmp = zk.Widget.$(uuid); + if (cmp) { cmp.resize(); } } function ad_closeBuble(uuid) { var cmp = zk.Widget.$(uuid); - for(var i=0;i