PDA

View Full Version : HOW: force Accordion to apply scrollbar to unseen panes


DangerAhead
01-23-2007, 02:47 AM
How do I make the Accordion measure the contents of all of its panes so that the scrollbars already exist in the panes when they're viewed?

For example:
I have a VBox with a text field
the text field is too big for the Accordion pane so a scrollbar automatically pops up... BUT there is a brief period when the text appears "doubled" on the page. It's as if the display list is drawing it, discovering it's too big then putting it in a text field with a scroller.

I've tried setting the "creation policy". It doesn't work. I need a method I can call that forces the redraw inside unseen panes. any suggestions?

Tink
01-23-2007, 09:10 AM
u got a quick examlpe we can view?

you could try invalidateNow();