Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus
Accepted Solution

How to Resize Any UIComponent that is inside a Container with a GridLayout/RowLayout

Hi,

how do we resize a component, lets say, a button.

 

I have tried using:

1. Button.setActualSize(Number,Number);

2. Button.width=? Button.height=?

 

None seems to be working when the button is hosted in a RowLayout.

 

Any thoughts?

www.jackdevora.com
Please use plain text.
Developer
UberschallSamsara
Posts: 1,007
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: How to Resize Any UIComponent that is inside a Container with a GridLayout/RowLayout

Try calling invalidateProperties() on the UIComponent right after you set its dimensions.

Please use plain text.
Trusted Contributor
itcraps
Posts: 238
Registered: ‎12-26-2010
My Device: BlackBerry Z10
My Carrier: Telus

Re: How to Resize Any UIComponent that is inside a Container with a GridLayout/RowLayout

Hi, thanks for the reply,

 

It doesnt work though.

www.jackdevora.com
Please use plain text.
Developer
UberschallSamsara
Posts: 1,007
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: How to Resize Any UIComponent that is inside a Container with a GridLayout/RowLayout

See my reply to your other recent thread on resizing an image.

Please use plain text.