PDA

View Full Version : [FIXED] [2.0] Dialog flickers in FF



hstang
14 Jul 2009, 12:01 PM
Hi,

I have a button that opens up a dialog. In FF 3.5, the initial rendering is noticeable and not seamless. (In IE and Chrome, this doesn't occur). You can see the window expanding and centered in 1 second.

Environment:
Firefox 3.5 (i did not test on 3.0)
GXT 2.0

Complete code below:


public class Test implements EntryPoint
{
public void onModuleLoad()
{
final Dialog dialog = new Dialog();
dialog.setBodyBorder(false);
dialog.setHeading("Dialog");
dialog.setWidth(600);
dialog.setHeight(250);
dialog.setHideOnButtonClick(true);
dialog.setModal(true);
dialog.add(new DualList());
Button button = new Button("ShowMe", new SelectionListener<ButtonEvent>()
{
@Override
public void componentSelected(ButtonEvent buttonEvent)
{
dialog.show();
}
});
RootPanel.get().add(button);
}

class DualList extends LayoutContainer
{
@Override
protected void onRender(Element parent, int index)
{
super.onRender(parent, index);
FormPanel panel = new FormPanel();
panel.setHeading("Drag and Drop Lists");
final DualListField lists = new DualListField();
panel.add(lists, new FormData("98%"));
panel.setWidth(550);
add(panel);
}
}
}

sven
15 Jul 2009, 6:20 AM
Fixed in SVN.