Scrollbars to access Hidden Components in Vaadin Window Component

When a modal window gets opened and the parent window gets resized down to a smaller size, some components within the modal window gets hidden. Since scrollbars does not appear, the hidden components become in-accessible.

The reason for this seems to be because ‘Window.show()’ methods apparently adds the style “v-modal-window-open” to document body when modal window is shown“v-modal-window-open” to document body when modal window is shown.
Problem is that this style is added to page body before Vaadin theme is applied. Therefore it doesn’t work when we tried to override this style in our theme.

HTML code generated by Vaadin:

….

Is there an easy way how to enable horizontal and vertical scrollbars for the modal window when the components does not fit the browser area for the scenario mentioned here?

16555.jpg