You do more and have non-deterministic behavior. Web can perform really 
well when done right the problem is that it can look right and perform 
badly on lower end hardware without the developer noticing the extra 
CPU/battery consumed. It goes against a core philosophy of Java: fail fast. 

Using flow layout as the default was something we "inherited" from Swing. 
It was one of our biggest mistakes unfortunately it's not something we can 
fix by now.

Scroll requires determinism. It needs to know the size it will get within 
the layout, then everything within it is given as much space as it needs. 
Most layouts are flexible and aren't deterministic. If we limit flow layout 
to only use up the height available we will block it from usage under a 
scrollable hierarchy. So:
Parent of scrollable - needs determinism to size the scrollable correctly
Child of scrollable - can have whatever behavior it wants

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/999a593e-eb31-41bd-b1ad-02b7823d4634%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to