Center contents in vaadin window - tabsheet after maximize/restore

I am trying to create a Window with centered content in Vaadin. Tabsheet is used to populate the Window with content, and tabsheets headers are resized properly after maximize/restore.

The problem is that content in tabsheets is not refreshed on the maximization, and are changed to maximized only after I restore the default size. If the window is moved/resized with mouse, the content position is recalculated properly.

I use next structure: Window(setSizeUndefined()) → CssLayout → TabSheet(setSizeFull()) → Tab → GridLayout(setSizeUndefined())

I want to center my content in the TabSheet, at least horizontally. Is there any way to do that?