You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by Greg Brown <gk...@mac.com> on 2009/08/12 14:52:39 UTC
PushButton aspect ratio
I discovered last night that the current implementation still only
partially addresses our original use case of acting as a minimum
aspect ratio for dialog buttons. If the default aspect ratio exceeds
the preferred value, the button height will grow, which isn't what we
want.
I think what we actually need are minimumAspectRatio and
maximumAspectRatio styles. If you set them both to the same value,
you'll get the current behavior. Otherwise, they act like bounds.
Unless there are any objections, I will modify the PushButton skin to
behave this way.
Re: PushButton aspect ratio
Posted by Greg Brown <gk...@mac.com>.
Excellent. :-)
On Aug 12, 2009, at 6:40 PM, Scott Lanham wrote:
> Just pulled in the updates. That works just as well as before :-)
>
> On Wed, 12 Aug 2009 10:52:39 pm Greg Brown wrote:
>> I discovered last night that the current implementation still only
>> partially addresses our original use case of acting as a minimum
>> aspect ratio for dialog buttons. If the default aspect ratio exceeds
>> the preferred value, the button height will grow, which isn't what we
>> want.
>>
>> I think what we actually need are minimumAspectRatio and
>> maximumAspectRatio styles. If you set them both to the same value,
>> you'll get the current behavior. Otherwise, they act like bounds.
>>
>> Unless there are any objections, I will modify the PushButton skin to
>> behave this way.
>
Re: PushButton aspect ratio
Posted by Scott Lanham <li...@sael.com.au>.
Just pulled in the updates. That works just as well as before :-)
On Wed, 12 Aug 2009 10:52:39 pm Greg Brown wrote:
> I discovered last night that the current implementation still only
> partially addresses our original use case of acting as a minimum
> aspect ratio for dialog buttons. If the default aspect ratio exceeds
> the preferred value, the button height will grow, which isn't what we
> want.
>
> I think what we actually need are minimumAspectRatio and
> maximumAspectRatio styles. If you set them both to the same value,
> you'll get the current behavior. Otherwise, they act like bounds.
>
> Unless there are any objections, I will modify the PushButton skin to
> behave this way.