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

Native Development

Reply
Developer
Posts: 263
Registered: ‎05-18-2011
My Device: Curve 9300, BB10 Dev Alpha C, Z10

Label's autoSize is not defined in 10.1.0?

Hi,

The autoSize of a Label is mentioned in the documentation: http://developer.blackberry.com/cascades/reference/bb__cascades__label.html#property-autosize.

It says this property is available since 10.1.0. My project's target is 10.1.0.1020 but the QNX IDE reports an error: "No default property defined for Label" for this property. Do I miss something here?

Label {
multiline: true
autoSize {
maxLineCount: 3
}
}

 Thanks.

--tom
Developer
Posts: 263
Registered: ‎05-18-2011
My Device: Curve 9300, BB10 Dev Alpha C, Z10

Re: Label's autoSize is not defined in 10.1.0?

"No default property defined for Label" error. Please help on this.
--tom
Highlighted
Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Label's autoSize is not defined in 10.1.0?

Is it actually not working or failing to compile?

 

Can you try it with the 10.2 Beta NDK? You can still build 10.1 applications with it, but the tooling is much improved.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker