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: 86
Registered: ‎12-06-2012
My Device: Curve 8520
My Carrier: Blackberry store

Is there any wrap content/ fill parent property for container as like in android ?

Hello Friends,

 

i want to set container size according to size of contents added in it .

How can i do it ?

Highlighted
Developer
Posts: 543
Registered: ‎08-31-2013
My Device: Q10, Z10LE, Nokia N950, DAB....
My Carrier: Telekom Slovakia

Re: Is there any wrap content/ fill parent property for container as like in android ?

From docs: By default, the width and height are adjusted automatically to fit all the container's children.

 

https://developer.blackberry.com/native/reference/cascades/bb__cascades__container.html



If helped give a like. If your problem was solved mark the post as "Solution"
Portfolio: BlackBerry Nokia
Social: Twitter | Facebook
About Me / Blog DevPDA | Blog