BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-24-2008, 09:56 AM   #1 (permalink)
New Member
 
Join Date: Jun 2008
Model: 8800
Carrier: n/a
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question FlowFieldManager disappears when layout is set

Please Login to Remove!

I created a flow field manager similar to the one below...
Code:
ffm = new FlowFieldManager(FlowFieldManager.VERTICAL_SCROLL|FlowFieldManager.HORIZONTAL_SCROLLBAR|FlowFieldManager.HORIZONTAL_SCROLL){
                        protected void sublayout(int maxWidth, int maxHeight)
                        {
                            //mySum is equal to about 687ish
                            super.sublayout(mySum, maxHeight);
                            setExtent(mySum, maxHeight);
                        }
                    };
and everything is fine, except that there is a huge blank space after the field. So then I tried this...
Code:
ffm = new FlowFieldManager(FlowFieldManager.VERTICAL_SCROLL|FlowFieldManager.HORIZONTAL_SCROLLBAR|FlowFieldManager.HORIZONTAL_SCROLL){
                        protected void sublayout(int maxWidth, int maxHeight)
                        {
                            //mySum is equal to about 687ish
                            super.sublayout(mySum, 400);
                            setExtent(mySum, 400);
                        }
                    };
and the entire thing disappears. The field only needs to be 280 pixels high. I thought that making the height a larger number than necessary would fix any issues. I don't understand why the flow field manager only seems to work when the height is maxHeight.
Please help.
Offline  
Old 07-25-2008, 02:59 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

can you post the whole code for your screen to see what you mean? Some screenshots would help, too.

normally if you do not set the extent of the manager, it's size will be automatically adapted to the fields it contains (of course if not using USE_ALL_WIDTH, USE_ALL_HEIGHT)
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.