IDEMPIERE-3518 Improvement For Mobile Compatibility. minor fix.

This commit is contained in:
Heng Sin Low 2017-10-20 09:50:17 +08:00
parent d34023d178
commit 75a36ec2ac
1 changed files with 4 additions and 2 deletions

View File

@ -905,7 +905,9 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
}
public void onPostAfterSize() {
String script = "var w = zk.Widget.$('#" + getUuid() + "'); w.toolbarScrollable(w);";
Clients.evalJavaScript(script);
if (this.getPage() != null) {
String script = "var w = zk.Widget.$('#" + getUuid() + "'); w.toolbarScrollable(w);";
Clients.evalJavaScript(script);
}
}
}