I've got a simple window with a form in it - validation messages are shown UNDER the form fields because I like users to see what the errors are without hovering on icons.

Both window and form are set to auto-height because if they are not, the form fields scroll under the end of the window and are hidden when the error messages are shown.

However, as some of you know, when auto-height is used on a window, the window's shadow is not synced with the window.

Does anyone have any hints on how to solve this seemingly very simple problem?