I have a ColorRect whose content is drawn with a shader.
I want it to expand and occupy all the available space possible (eg whole screen minus margins if it is inside margin control, or all the space left by other controls if it is in HBox). It should keep its aspect ratio.
Is there a way to do it with nodes or do I need to implement this in code?