I'm trying to create a collapsible pane, and set it to collapsed or expanded in code depending on certain variables. My problem is that collapse() doesn't work properly.
If I call collapse(false), the title paints properly, the icon shows as the expanded icon, but the content doesn't show until I move the mouse over the title.
If I call collapse(true), nothing paints properly.
What gives?
(Edit: Using the mouse works properly.)