BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-24-2008, 08: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, 01: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

1PC Used SIEMENS 6ES7 952-1AL00-0AA0 6ES7952-1AL00-0AA0 2MB MEMORY CARD Tested
$218.0
1PC Used SIEMENS 6ES7 952-1AL00-0AA0 6ES7952-1AL00-0AA0 2MB MEMORY CARD Tested pictureAEG MODICON AS-506P-002 MEMORY MODULE * NEW IN BOX *
$3838.0
AEG MODICON AS-506P-002 MEMORY MODULE * NEW IN BOX * picture1PC Used SIEMENS 6SL3054-0EF00-1BA0 MEMORY CARD Tested
$174.0
1PC Used SIEMENS 6SL3054-0EF00-1BA0 MEMORY CARD Tested pictureRoyal Signet 20 Electronic/Memory Typewriter w/Extra Printwheel/Ink-Works Great
$40.0
Royal Signet 20 Electronic/Memory Typewriter w/Extra Printwheel/Ink-Works Great picture1PC Used SIEMENS 6ES7 951-1AJ00-0AA0 6ES7951-1AJ00-0AA0 512KB MEMORY CARD Tested
$174.0
1PC Used SIEMENS 6ES7 951-1AJ00-0AA0 6ES7951-1AJ00-0AA0 512KB MEMORY CARD Tested picture






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