05-17-2010 11:08 PM
I have a screen with 3 managers.
One Main Custom Manager [MCM] contains a VFM and another Manager M laid out beside the VFM.
| | |
| | |
| VFM | M |
| | |
| | |
The VFM contains an ObjectListField and the user can scroll through this ObjectListField.
The major issue that I am having is that the Manager M needs to be docked, be static, ie, not scroll with the ObjectListField to it's left, and I don't know how to get this behaviour. Everytime I scroll past the bottom of the ObjectListField, the Manager M scrolls with it.
I have tried all sorts of things and searched the forums for an answer to this problem.
Any help would be greatly appreciated.
05-17-2010 11:19 PM
You might need to create a manager that wraps your VFM and M.
I don't have a ton of experience but what I do know is that the default managers, when allowed to scroll, can go to nearly unlimited sizes, thus making it so that when you scroll to the end of the ObjectListField in the VFM, it passes it off to the VFM (instead of simply stopping the ObjectListField) and continuing to scroll taking your M with it.
I don't know if that helps or if I'm leading you in the wrong direction because of my inexperience but hope it might shed some light on what the problem might be.
05-17-2010 11:33 PM
what do you mean when you say a manager that wraps the VFM, and M ?
Anyone else have experience with this problem, it would really help to understand the behaviour and solve this problem
05-17-2010 11:57 PM
I don't know why your side Manager would be scrolling at all - unless your main Custom Manager is scrolling (i.e. has Manager.VERTICAL_SCROLL style bit set). Make sure that you create it with Manager.NO_VERTICAL_SCROLL (or call super(NO_VERTICAL_SCROLL)). Otherwise what you think as your left VFM scrolling will in fact be your Main Manager scrolling, making your side Manager scroll along.
P.S.: Please give kudos (the black star on the left) to the posts that helped you. Mark as solution the posts that solved your problem.
05-18-2010 08:45 AM
Even setting the styles as suggested doesn't help solve the problem.
Keep the suggestions coming.
I have tried a whole bunch of possible solutions, nothing seems to work, I don't know why the Manager on the right scrolls.
05-18-2010 09:30 AM
You'll have to be more specific with your description of the code for us to "keep the suggestions coming".
Like I said, there is noting that would specifically tie a Manager to the other Manager's scrolling. If you could post some code excerpts showing how you create and populate your Managers (including what is added to what), that would be useful. Also, look for any specific setVerticalScroll() calls - if it scrolls a Manager containing the one to be "docked", you'll get what you describe.
08-04-2011 02:02 PM
08-04-2011 02:38 PM
@dnepr: that's pretty much what I told akhan back in the day.
However, I suspect some additional problem there: both akhan and david_schwartz_bb seem to have problems specifically with ObjectListField. And there was a report on a totally difference issue, but still to do with ListField and scrolling. Might well be an OS bug - that other issue most definitely was.