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
New Developer
Posts: 61
Registered: ‎06-07-2011
My Device: Playbook
My Carrier: Employee

Change list with dynamically

I want to change the list width when the orientation changed. I am trying to reassing the width property of the list but didn't got any change in the list width. Can any on tell me how to chage the list width dynamically. Thanks in advance.

 

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Change list with dynamically

Calling setSize on the list should be sufficient. If you have a custom renderer where the layout depends on the width, then you will probably need to refresh the contents, but it has been my experience that changing the size of the list will update the contents automatically.