.. in both Firefox and Chrome.
Using GXT 2.1.1 and GWT 2.0.3.
In onModuleLoad() I'm doing a simple:
Code:
ContentPanel cp = new ContentPanel();
cp.setSize(800, 600);
cp.setPosition(0, 0);
cp.setHeading("Some Stuff");
OpeningWindow ow = new OpeningWindow();
cp.add(ow);
RootPanel.get().add(cp);
cp.layout();
Then that is calling :
Code:
public class OpeningWindow extends LayoutContainer
{
@Override
protected void onRender(Element parent, int pos)
{
super.onRender(parent, pos);
setLayout(new FlowLayout(10));
final Window window = new Window();
window.setSize(800, 600);
window.setModal(true);
window.setPlain(true);
window.setBlinkModal(true);
window.setHeading("Configuration");
window.setLayout(new FitLayout());
TabPanel panel = new TabPanel();
panel.setBorders(false);
TabItem item1 = new TabItem("ConfigTab1");
item1.addText("Hello....");
item1.addStyleName("pad-text.....");
TabItem item2 = new TabItem("ConfigTab2");
item2.addText("..... World!");
item2.addStyleName("pad-text....");
panel.add(item1);
panel.add(item2);
window.add(panel, new FitData(4));
window.addButton(new Button("Hello"));
window.addButton(new Button("World"));
Button btn = new Button("Hello World", new SelectionListener<ButtonEvent>()
{
@Override
public void componentSelected(ButtonEvent ce)
{
window.show();
}
});
add(btn);
}
}
The content panel works nice, then when I hit "Hello World", the text that is supposed to display in a Window with modal enabled, etc isn't even working. It just shows up as out-of-place text beside the button and header.
Can anyone seen what I'm doing wrong?
P.S. I'm trying to work the 'Hello World' Window example in GXT's Explorer.