MatrixLayout Properties 
stretchedHorizontally
Specifies whether UI elements aligned by this layout are adjusted horizontally to the container size, so that the container is completely filled horizontally.
Switch this option off, if the width of the container is to be determined by the content.
stretchedVertically
Specifies whether UI elements aligned by this layout are adjusted vertically to the container size, so that the container is completely filled vertically.
Switch this option off, if the height of the container is to be determined by the content.
Caution
Note that with dynamic programming the default values of stretchedHorizontally and stretchedVertically are set to true, whereas in the view designer they are set to false.