BF2052249 Default window size for tabs with included tab

This commit is contained in:
tspc 2008-08-15 00:19:25 +00:00
parent 74bf943568
commit e4fe12b878
1 changed files with 1 additions and 4 deletions

View File

@ -452,9 +452,6 @@ public class GridController extends CPanel
public boolean includeTab (GridController gc , APanel aPanel, GridSynchronizer sync) public boolean includeTab (GridController gc , APanel aPanel, GridSynchronizer sync)
{ {
GridController detail = gc; GridController detail = gc;
int screenWidth = (int) Toolkit.getDefaultToolkit().getScreenSize().getWidth() - 630;
// Set screen dimension
//detail.setPreferredSize(new Dimension(screenWidth, 250));
detail.setDetailGrid(true); detail.setDetailGrid(true);
detail.addMouseListener(detail); detail.addMouseListener(detail);
detail.enableEvents(AWTEvent.HIERARCHY_EVENT_MASK + AWTEvent.MOUSE_EVENT_MASK); detail.enableEvents(AWTEvent.HIERARCHY_EVENT_MASK + AWTEvent.MOUSE_EVENT_MASK);
@ -463,9 +460,9 @@ public class GridController extends CPanel
//BEGIN - [FR 1953734] //BEGIN - [FR 1953734]
gc.setGCParent(this); gc.setGCParent(this);
//END - [FR 1953734] //END - [FR 1953734]
gc.getGCParent().setPreferredSize(vPanel.getPreferredSize());
synchronizerList.add(sync); synchronizerList.add(sync);
return true; return true;
} // IncludeTab } // IncludeTab
//FR [ 1757088 ] //FR [ 1757088 ]