Firemonkey style designer make TRectangle fill parent

157 Views Asked by At

I am trying to add a TRectangle object to a Firemonkey control in the style designer to give the control a background color. I can add the TRectangle and size it manually, however then the style does not work if the control changes size in the designer. Is there a way I can make the TRectangle automatically take up the size of it's parent control?

1

There are 1 best solutions below

0
On BEST ANSWER

Please make sure that property "TRectangle.Align" is set to "Client"