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

ShoreTel 560 S6 IP Phone VoIP Telephone w/ Handset and Stand
$99.83
ShoreTel 560 S6 IP Phone VoIP Telephone w/ Handset  and Stand pictureUsed Cisco CP-7921G-A-K9 Unified Wireless IP VoIP Phone No Battery No Charger
$9.99
Used Cisco CP-7921G-A-K9 Unified Wireless IP VoIP Phone No Battery No Charger pictureShoretel 230 IP VoIP Phone Telephone SEV IP230 - Black - Refurbished *FREE SHIP
$69.0
Shoretel 230 IP VoIP Phone Telephone SEV IP230 - Black - Refurbished *FREE SHIP pictureAASTRA 6731i Phone A6731-0131-10-01 Black Display 31i POE LAN VOIP IP
$32.0
AASTRA 6731i Phone A6731-0131-10-01 Black Display 31i POE LAN VOIP IP  picture10 Avaya Nortel 1140e IP Phone POE VoIP Telephone NTYS05BCE6 SIP BCM50 BCM450
$550.0
10 Avaya Nortel 1140e IP Phone POE VoIP Telephone NTYS05BCE6 SIP BCM50 BCM450 picture






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