Set Window Height with CSS

Hi,
I am trying to set the height of a subwindow to 100% - 50px

.mywindowheight {
height: calc(100% - 50px);
}

It is not working for me, is vaadin css able to handle calc like this?

usually it is not so good to define the heights for some things in CSS, as once in a while it might break the layout calculations that Vaadin does for you.

I can’t come up with a clean way to do something like that right now. Maybe someone else can. A window.setHeight(“90%”); might be a good approximation.

Thanks for your reply, Jens,
At present I am handling it with a browser size listener but I am concerned the traffic on the connection might be too high.
My original solution was to use 90% but it looks a bit untidy/unprofessional.
Paul