PDA

View Full Version : Remove scrollbar from previous component view


ljonny18
11-21-2006, 02:57 PM
"Scroll bar remaining within all components when not needed"

Within my flex 2 applications I am “changing” between components using the “visible” property….

Most of my components are contained within Vboxes…. My problem is – if I go from a component that is “long” containing a lot of information etc therefore needing a vertical scroll bar… and then I “change” back to a small component needing NO scrollbar – the scrollbar stays visible and usable on within this component view (from the previously viewed component) even though it is not needed

I assume it is because the previous component (needing the scrollbar) is actually still open, although its visible property is set to “false” etc etc…..

Is there a way I can get around this – and remove the scrollbar when it is not needed???

Thanks,
Jon.

Tink
11-21-2006, 03:13 PM
try invoking invalidateDisplayList() on your Vbox after the new content has been added.

Tink
11-22-2006, 02:09 PM
did that work?

if not try validateNow()

ljonny18
11-23-2006, 01:54 PM
no, I don't seem to be having any joy with that :(

Jon.

Tink
11-23-2006, 02:01 PM
can u post an the code to a simpliefied example