Split popup opening from instantiation, allows reopening

This commit is contained in:
johni0702
2015-11-14 13:41:46 +01:00
parent 387b615ced
commit 22b91c1301
2 changed files with 9 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ public class GuiYesNoPopup extends AbstractGuiPopup<GuiYesNoPopup> {
GuiYesNoPopup popup = new GuiYesNoPopup(container).setBackgroundColor(Colors.DARK_TRANSPARENT)
.setLayer(container.getMaxLayer() + 1);
popup.getInfo().addElements(new VerticalLayout.Data(0.5), info);
popup.open();
return popup;
}