tags:

views:

13

answers:

0

Hi all.

I can't apply Scroller when I have a nested group with persentage width.

<s:Scroller id="scroller" width="100%" height="100%">
    <s:VGroup id="vg1" width="100%" height="100%">
        <s:VGroup id="vg2" **width="100%" height="100%"**>
            <s:Button label="Loooooooooooooooooong text"/>
        </s:VGroup>
    </s:VGroup>
</s:Scroller>

When I remove [width="100%" height="100%"] from vg2 it works fine (because contentWidth of the vg1 is calculated differently).

Any ideas?

This is just an example. What I need is a main scrollbar for the whole application when something doesn't fit into screen.

Thanks!