flex - Having the content of a s:Scroller viewport at 100% height -


Is there any way to get the contents of a component within 100% height inside the scroller?

Here's a simple example:

  & lt; S: Scroller width = "100%" height = "100%" & gt; & Lt; S: viewport & gt; & Lt; S: Group height = "100%" & gt; & Lt; S: reset width = "10" height = "500" & gt; & Lt; S: filling & gt; & Lt; S: solid color color = "0xFF0000" /> & Lt; / S: Fill & gt; & Lt; / S: Rect & gt; & Lt; S: reset width = "10" x = "10" height = "100%" & gt; & Lt; S: filling & gt; & Lt; S: solid color color = "0x00FF00" /> & Lt; / S: Fill & gt; & Lt; / S: Rect & gt; & Lt; S: reset width = "10" x = "20" height = "100" & gt; & Lt; S: filling & gt; & Lt; S: solid color color = "0x0000FF" /> & Lt; / S: Fill & gt; & Lt; / S: Rect & gt; & Lt; / S: Group & gt; & Lt; / S: Viewport & gt; & Lt; / S: Scroller & gt;  

If you run this code and scroll down a bit, then you get it:

Here's an alternative solution: Put it in the second group, and then it Works as expected.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -