Prevent Window from Maximizing / Restoring through double click

I have a problem with what appears to be new functionality in Vaadin 7, whereby if you double click on a Window it will maximize / restore to previous size. I have a requirement to
not
have this enabled. (I have already hidden the minimisebox / restorebox using CSS). I am using a modal Window from a Vaadin portlet.

I would be grateful for guidance over what code changes I need to make. It would appear that state changes in the Window class itself do not control sizing on this occasion, and it appears also that double click events are not generated as might be expected.

Thanks in advance.