If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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

Java Development

Reply
Developer
mapleleafs90
Posts: 374
Registered: ‎02-12-2011
My Device: Bold 9780
My Carrier: Wind Mobile
Accepted Solution

Managers Height

I have a vertical field manager, I am adding elements to it, e.g.

 

VFM.add(button);

VFM.add(tab);

VFM.add(HFM);

 

Then I need to get the height of this container so I can set an appropriate background height for the remaining space below. However .getHeight()   .getVisibleHeight() and everything else seems to return 0.

 

How can I grab the height "on the go" to layout the reset of my fields/elements accordingly?

Please use plain text.
Developer
mapleleafs90
Posts: 374
Registered: ‎02-12-2011
My Device: Bold 9780
My Carrier: Wind Mobile

Re: Managers Height

nvm, found solution by using getPreferredHeight() of the actual fields instead.
Please use plain text.