public class View extends Window {
…
public View() {
setModal(true);
setWidth(“50%”);
center();
…
}
…
}
[/code]Works great. However, now I would like to set the
Y (vertical) position of this window, and keep it centered horizontally. If I add, for example,
I guess there center-mode is somehow handled differently in Window, but for me this sound like a bug. Setting Y position should not affect the X position at all.
If you cannot find a solution I suggest to file a bug at
dev.vaadin.com