IDEMPIERE-1364 Problem with the Find on any window having "tree" panel.

This commit is contained in:
Heng Sin Low 2013-10-04 10:55:48 +08:00
parent 2a7ef9dda3
commit 350a5d6b26
1 changed files with 2 additions and 1 deletions

View File

@ -1293,7 +1293,8 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
if (recordId <= 0) return;
//force on init render
if (TreeUtils.isOnInitRenderPosted(treePanel.getTree()) || treePanel.getTree().getTreechildren() == null) {
if (TreeUtils.isOnInitRenderPosted(treePanel.getTree()) || treePanel.getTree().getTreechildren() == null
|| treePanel.getTree().getTreechildren().getItemCount() == 0) {
treePanel.getTree().onInitRender();
}