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
BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: qnx list ugliness on PB 1.0.6.2390 / AIR SDK 1.1.0

Thank you for the sample.  I am looking into this now.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 508
Registered: ‎01-19-2011
My Device: My Trusty Red Plane
My Carrier: Outer Space

Re: qnx list ugliness on PB 1.0.6.2390 / AIR SDK 1.1.0

i had to update the sample, there was a mistake in recreating the problem (the original source used Container as entrypoint)

 

see the new file.

 

To compare before and after, you can also load the file into one of the older simulator versions (very clearly visible)

-----------------------------------------------------------------------
I'm a bird from outer space. But I'm not flappy o.o
New Contributor
Posts: 2
Registered: ‎06-28-2011
My Device: Blackberry Playbook
My Carrier: N/A

Re: qnx list ugliness on PB 1.0.6.2390 / AIR SDK 1.1.0

I also posted an FXP showing this issue by using an UIComponent to wrap up the dropdown. Thanks for your help.

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: qnx list ugliness on PB 1.0.6.2390 / AIR SDK 1.1.0

Thank you to everyone who added sample code.  I have sent this issue to our development team.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 10
Registered: ‎05-03-2011
My Device: playbook
My Carrier: none

Re: qnx list ugliness on PB 1.0.6.2390 / AIR SDK 1.1.0

[ Edited ]

Any update on this issue? I am running into it as well. Is there any work-around?

 it has been over a month since ths last reply. 

 

EDIT - I see now that all the activity moved to the Issue Tracker, so it hasn't really been that long since the last reply. Sorry I missed that.

 

There's a work-around there, suggesting resizing the lists after they are drawn, however I had no luck with that, nor with calling drawNow and invalidate. If anyone else has suggestions for working around this, I'd love to hear them. 

 

I'm using List and SectionList. Both have this problem. I may have to go back to the Adobe components, which is a shame as I spent a lot of time figuring out how to use QNX in a FLEX project.

 

rob

My Apps:
storc
New Contributor
Posts: 3
Registered: ‎09-19-2011
My Device: Playbook
My Carrier: N/A

Re: qnx list ugliness on PB 1.0.6.2390 / AIR SDK 1.1.0

[ Edited ]

*bump* I'm seeing the same (or similar) issues in a current project: custom cells appear stretched in a fresh list, but render correctly after an update (say, scrolling).

 

I'm also seeing the same behaviour with a stock list (default skin).

 

Did anyone figure out a good workaround for this yet?

New Contributor
Posts: 3
Registered: ‎09-19-2011
My Device: Playbook
My Carrier: N/A

Re: qnx list ugliness on PB 1.0.6.2390 / AIR SDK 1.1.0

To answer my own question:

 

I was trying to force a redraw by adding a one-shot ENTER_FRAME event listener and tweaking some random (display-related) property on a newly added-to-stage List after that first frame had elapsed, to give it time to render.

 

This wasn't working.

 

So, I added *another* event listener to tweak some random property on the *second* frame that List had been on the stage. This works, consistently.

 

I know it sounds insane, but it works!

I've boiled a workaround down to this, using alpha to cover the ugliness and make a deliberate-looking transition:

_list = new List();
/* setup list */
addChild( _list );
_list.alpha = -1;
Tweener.addTween( _list, { alpha:1, time: 0.3 } );

Note the -1: this keeps the list invisible (alph0) for the first couple of (broken) frames of its lifespan

Highlighted
Developer
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: qnx list ugliness on PB 1.0.6.2390 / AIR SDK 1.1.0

Thanks! Im going to try this workaround in my project. Ill let you know how it goes

Like all of my posts