PDA

View Full Version : [FIXED] Modal window opening another modal window



bjagodzinski
13 Aug 2008, 5:26 AM
The bug founded is related to the one of bugfixex from the latest 1.0.2 relase, to be more specific it relates to this bugfix:


Modal window opening another modal window not masking first windowThis issue has been fixed, but not completely. When we create a window, then next modal window masking the first, and then, the third modal window, masking the first two windows, all seems be proper. However, if we close the one window which is active, the other windows are not modal anymore.

Sample code:


public class Entry implements EntryPoint {

public void onModuleLoad() {


ButtonBar test = new ButtonBar();
Button parametersBtn = new Button("Open new window");
parametersBtn.addListener(Events.Select, new Listener<ComponentEvent>(){
public void handleEvent(ComponentEvent ce) {
createWindow();
}
});

test.add(parametersBtn);
RootPanel.get().add(test);

}

private void createWindow() {
Window window = new Window();
window.setModal(true);
window.setSize(200, 200);

ButtonBar test = new ButtonBar();
Button parametersBtn = new Button("Open new window");
parametersBtn.addListener(Events.Select, new Listener<ComponentEvent>(){
public void handleEvent(ComponentEvent ce) {

createWindow();
}
});

test.add(parametersBtn);
window.add(test);
window.show();

}

}

darrellmeyer
13 Aug 2008, 11:13 AM
Fix is in SVN.