Connect with:
About Me
Alessandro Annini
I'm a freelance developer currently working at Leaff.it/ I really love famo.us framework and its amazing potential and if you're like me, and you want the web to win, please share some snippet of code for the community and grow faster with us
Categories
Meta
Famo.us Code | FlexibleLayout in a ScrollView
487
post-template-default,single,single-post,postid-487,single-format-standard,ajax_updown_fade,page_not_loaded,,qode-theme-ver-6.2.1

FlexibleLayout in a ScrollView

07 Jul FlexibleLayout in a ScrollView

You can’t use a FlexibleLayout to “sequenceFrom” in a ScrollView, because FlexibleLayout does not return a proper size. So the Scollview gets confused and does not know how to render properly.

If you wrap the FlexibleLayout in a Size modifier, and add the Size-modifier instead, everything works as it should.

To make this simple, I’ve created FlexibleRowLayout. It takes an additional “size” parameter so the Scrollview can render properly.

See demo & code here: