3 Replies Latest reply on Apr 8, 2009 4:11 PM by Michael Borbor

# Proportional devisions with fixed minimums

I'm looking for away to dived up the stage into three(3) work areas. Lets call them the left, right, and middle.  the base stage is set to 800x600 and the main container  is set to 90% or 720 pixels.  The left and right sides have a maxwidth set to 120 pixels (20% of 720 pixels) and are fixed to the left and right sides of the main container using constraints.  The middle has its width set to 60% with no min or max width set.

As you would expect when the brouser is open on a screen with a reselution higher than 800x600, the middle incresses in size to 60% of the new size of the main contaner leaving gaps between the left and middle and the right and middle.

So here is the question :

"How can I get the middle to fit between the left and right without gapping when run at a higher screen resolution?"

• ###### 1. Re: Proportional devisions with fixed minimums

Hi Jim, I assume that this is what you want to do

```<?xml version="1.0" encoding="utf-8"?>
<mx:HBox width="100%" height="100%">

<mx:TitleWindow width="120" minWidth="120"  />

<mx:TitleWindow minWidth="720" width="100%" />
<mx:TitleWindow width="120" minWidth="120"  />
</mx:HBox>

</mx:Application>
```

Hope this help, have a good day.

• ###### 2. Re: Proportional devisions with fixed minimums

No, this is not what I'm after.  This is "fixed" relationship between the three elements, left, right, and middle.  Also the number of pixels of each element does not change when the resolution of the screen changes.  I'm looking for away to have the position of the left and right elements will stay on the left and right sides of the main container and the middle element expands and contracts, as needed to fit between the two other elements with no gaps.

• ###### 3. Re: Proportional devisions with fixed minimums

Then you can use percentage-based sizing.