[ adempiere-ZK Web Client-2787755 ] Add WindowTabPlacement user preference

This commit is contained in:
Heng Sin Low 2009-05-07 05:50:16 +00:00
parent 39e39490c0
commit 126417c1cc
1 changed files with 6 additions and 2 deletions

View File

@ -181,8 +181,12 @@ public class ADWindowPanel extends AbstractADWindowPanel
@Override
public boolean initPanel(int adWindowId, MQuery query) {
boolean retValue = super.initPanel(adWindowId, query);
if (adTab.getTabCount() == 1 && west != null)
west.setVisible(false);
if (adTab.getTabCount() == 1) {
if (west != null)
west.setVisible(false);
else if (east != null)
east.setVisible(false);
}
return retValue;
}