MapQuery fails to update its size when it is placed inside the LayoutPanel. I prepared a simple project illustrating this issue. Layout contains two panels which are bottom and center aligned. The MapQuery component is placed inside the centered one:

Close the bottom panel.
If you press UpdateMap button which emulates layer visibility control (for the test reason it simply sets the visibility of the only layer of the map to true), you will see that the map image would be cut by the height of the bottom panel as if it was visible.

Sample project is in the attachment.