jcorbin
20 May 2009, 7:29 AM
Hello,
I'm using JDK1.5.x, GWT 1.5.3, GXT 1.2.4.
I created a custom widget derived from CompositeWidget that has a LayoutContainer with a BorderLayout that contains three (3) Content Panels, one for the West, Center and East region respectively.
I then multiple instances of my custom widgets in the following manner,
Viewport viewPort = new Viewport();
viewPort.setLayout(new FitLayout());
ContentPanel mainPanel = new ContentPanel();
mainPanel.setLayout(new RowLayout(Orientation.VERTICAL));
mainPanel.setBorders(false);
mainPanel.setHeaderVisible(false);
mainPanel.setFrame(true);
mainPanel.setCollapsible(true);
mainPanel.add(new PositionWidget(), new RowData(1, 150,new Margins(0,4,0,4)));
mainPanel.add(new PositionWidget(), new RowData(1, 150, new Margins(4)));
mainPanel.add(new PositionWidget(), new RowData(1, 150, new Margins(0,4,0,4)));
viewPort.add(mainPanel);
RootPanel.get().add(viewPort);
They render for the most part okay, but when I compile and run them in the browser and collapse one of the widgets east panel content and then click the mouse anywhere in the collapsed east region, the "easts content panel" overlaps the center region. I've attached a screen shot for clarity.
Any ideas?
I'm using JDK1.5.x, GWT 1.5.3, GXT 1.2.4.
I created a custom widget derived from CompositeWidget that has a LayoutContainer with a BorderLayout that contains three (3) Content Panels, one for the West, Center and East region respectively.
I then multiple instances of my custom widgets in the following manner,
Viewport viewPort = new Viewport();
viewPort.setLayout(new FitLayout());
ContentPanel mainPanel = new ContentPanel();
mainPanel.setLayout(new RowLayout(Orientation.VERTICAL));
mainPanel.setBorders(false);
mainPanel.setHeaderVisible(false);
mainPanel.setFrame(true);
mainPanel.setCollapsible(true);
mainPanel.add(new PositionWidget(), new RowData(1, 150,new Margins(0,4,0,4)));
mainPanel.add(new PositionWidget(), new RowData(1, 150, new Margins(4)));
mainPanel.add(new PositionWidget(), new RowData(1, 150, new Margins(0,4,0,4)));
viewPort.add(mainPanel);
RootPanel.get().add(viewPort);
They render for the most part okay, but when I compile and run them in the browser and collapse one of the widgets east panel content and then click the mouse anywhere in the collapsed east region, the "easts content panel" overlaps the center region. I've attached a screen shot for clarity.
Any ideas?