flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Resizable Component that manages to keep its proportions
Date Thu, 15 Aug 2013 21:16:01 GMT
In theory, in the measure() method, you would set measuredWidth or
measuredHeight based on explicitHeight and/or explicitWidth

On 8/15/13 11:43 AM, "Arne Broedel" <arne@trainon.net> wrote:

>Hi Flex-Community,
>I am skinning a Button with an icon. The Button should be sizable but keep
>its proportions.
>Its proportions width to height is 2 to 1. So every time the width is
>changed the height shall change to width/2 and every time the height is
>changed the width shall change to height*2.
>Anyone can tell me a proper solution.

View raw message