Hello Hristo,
this example works fine, but still I don’t understad, why I shouldn’t have set maxWidth and maxHeight. In this case is maxWidth automatically set to 800px and maxHeight to 600px, but I really need them to be set to 100%, because in my project I am adding new button to maximize (and then minimize) window to 100% of the screen.