I definitely would like to see this as I have indeed come across a use for it when using custom background images and custom shapes.
The
<WidthHeightRatio> tag suggested by SmokingCookie would be good, but something which would be much nicer (yet more complex from a programming stand-point) would be to have something like:
code:
<Size>
<Width>
<Minimum>579</Minimum>
<Maximum>988</Maximum>
</Width>
<Height><Fixed>2*Width</Fixed></Height>
</Size>
That is, allow strings defining relationships between width/height, this would in theory allow simple and more complex relationships should the need arise
Interesting(ish) scenario:
code:
<Height>
<Minimum>Width*1.5</Minimum>
<Maximum>Width*2</Maximum>
</Height>
eg. If Width = 100, then Height min = 150 and max = 200.
This would cause the height to remain in a certain range (between 150 and 200) unless width is changed.
Of course you would (should) be able to define relationships in terms of Height (eg.
<Width><Fixed>2*Height
<Fixed></Width>) as well as in terms of Width (eg.
<Height><Fixed>2*Width
</Fixed><Height>). Whilst the necessity may not be apparent from a Fixed standpoint, the 'interesting scenario' above could be used to limit width to a certain range depending on height just as well as it did limit height depending on width.
Either way, I hope to see some form of constrained proportions in place. I probably should have suggested this earlier but the idea kept slipping my mind