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
Developer
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
Developer
Posts: 1,269
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.

Highlighted
Developer
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
Developer
Posts: 1,269
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.