Window shift problem

I have CssLayout that contains some buttons and another cssLayouts with name shortcutlayout. Buttons open PopupButton. When i click one of the shortcutlayout, it opens window. If i click buttons that open PopupButton while window loading it shifts my window to bottom. How can i handle this

Could you attach clean minimal simplified code example that demonstrates the problem?