IDEMPIERE-369 Master Detail layout improvements. Fixed wrong redraw condition in previous revision.

This commit is contained in:
Heng Sin Low 2012-11-26 11:26:59 +08:00
parent 6c89a97f01
commit 6ea176f61a
1 changed files with 2 additions and 4 deletions

View File

@ -140,12 +140,10 @@ public class CompositeADTabbox extends AbstractADTabbox
detailPane.addEventListener(DetailPane.ON_POST_SELECT_TAB_EVENT, new EventListener<Event>() { detailPane.addEventListener(DetailPane.ON_POST_SELECT_TAB_EVENT, new EventListener<Event>() {
@Override @Override
public void onEvent(Event event) throws Exception { public void onEvent(Event event) throws Exception {
if ((!ADTabpanel.isUseSplitViewForForm() && !headerTab.isGridView()) if ((!ADTabpanel.isUseSplitViewForForm() && !headerTab.isGridView())) {
|| (detailPane.getSelectedADTabpanel() instanceof ADSortTab)) {
LayoutUtils.redraw(detailPane); LayoutUtils.redraw(detailPane);
Clients.scrollIntoView(detailPane.getSelectedADTabpanel()); Clients.scrollIntoView(detailPane.getSelectedADTabpanel());
} }
} }
}); });
} }