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
Contributor
Posts: 25
Registered: ‎03-13-2011
My Device: Playbook
My Carrier: Sofrware engineering

picker.setListWidth does not work on SDK1.0.1

Hi,all.

My code list as below.

var order:Picker = new Picker();				
order.isOpen = true;			
order.rowCount = 3;
order.width = orderWidth;					
order.height = orderHeight;
order.setPosition(0,0);
this.addChild(order);
order.setListWidth(0,50);
order.setListWidth(1,150);
order.dataProvider = new DataProvider(data);

 

Contributor
Posts: 25
Registered: ‎03-13-2011
My Device: Playbook
My Carrier: Sofrware engineering

Re: picker.setListWidth does not work on SDK1.0.1

Sorry,I clicked the 'Post' button to post the thread by misuse.

I used setListWidth function to set the width for each column.But what the app displayed is that all column has the same default width.

Is there any problem in my code?

My sdk version is 1.0.1.

Thanks.

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

Re: picker.setListWidth does not work on SDK1.0.1

For fun, try setting the widths after you set the data provider. It may not know about each column to set because the data provider is still null at that point. Just a guess.
Contributor
Posts: 25
Registered: ‎03-13-2011
My Device: Playbook
My Carrier: Sofrware engineering

Re: picker.setListWidth does not work on SDK1.0.1

Thanks. What you guessed is right. It works now.