In the build 5.1p power 13.09.15 I get a new bug (see screenshot). This was working with previous versions.
Code:
public class TestingModule implements EntryPoint { @Override public void onModuleLoad() { IButton button = new IButton("click me"); button.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { ask("this is a question", new BooleanCallback() { @Override public void execute(Boolean value) { SC.say(value + ""); } }); } }); button.draw(); } public static void ask(String message, final BooleanCallback callback) { final Dialog dialog = new Dialog(); dialog.setTitle("title"); dialog.setMessage(message); dialog.setIsModal(true); dialog.setShowModalMask(true); dialog.addCloseClickHandler(new CloseClickHandler() { @Override public void onCloseClick(CloseClickEvent event) { KidsDialogs.hideLoadingMask(); } }); Button jaButton = new Button("yes"); Button neinButton = new Button("no"); jaButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { if (callback != null) { callback.execute(true); } dialog.markForDestroy(); } }); neinButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { if (callback != null) { callback.execute(false); } dialog.markForDestroy(); } }); dialog.setButtons(jaButton, neinButton); dialog.show(); } }
Comment