Window setModal(true/false) implies center = true?!?

Hi,

if you set a new window to be modal (window.setModal(true)), the window will automatically get centered. even if you set modal to false the window will get centered too. there is no way to set the position of the window afterwards. so a modal window can not be positioned… does a workaround exist other than extending the window class and overwrite a lot of code? maybe in a future release this behaviour could be changed or at least improved.

br klemensl

It’s a bug. Thanks for pointing it out.
Added ticket:
http://dev.vaadin.com/ticket/3147

ok, then there is hope, it will get fixed :slight_smile:

I did a quick’n’dirty fix like Mauno suggested. It’ll be in the next nightly build.