Firemonkey style designer make TRectangle fill parent

115 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 answers

0
Zam On BEST ANSWER

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