Minimum size for re-sizable window?

Hello everyone,

I have a Vaadin
that is resizeable by the user (
). What I would like to have is a minimum size for the window (in pixels), such that the user can make it larger than this size, but not smaller.

I attempted to do it in CSS:

.myWindow {
min-width: 500px;
min-height: 300px;
width: 500px;
height: 300px;

The CSS does get applied (window is 500x300), but the “min-width” and “max-width” properties seem to be ignored by Vaadin when resizing.

Is my CSS wrong? Or is there any other way to restrict the minimum size of a Vaadin Window? I did some Google research, but I couldn’t find any result which isn’t at least one year old…