Fixed intermittent javascript error.

This commit is contained in:
Heng Sin Low 2012-03-05 12:48:13 +08:00
parent 413e7214ca
commit 6da3e8a2b8
1 changed files with 1 additions and 0 deletions

View File

@ -258,6 +258,7 @@ public class StatusBarPanel extends Panel implements EventListener, IStatusBar
private void showPopup() {
popup.setVisible(true);
popup.setStyle(popupStyle);
if (getRoot() == null || !getRoot().isVisible() ) return;
String script = "var d = zk.Widget.$('" + popup.getUuid() + "').$n();";
script += "d.style.display='block';d.style.visibility='hidden';";