Elementary Frame and Genlist Example

I recently had a new user to the EFL and Elementary pose a question about how to make an Elementary genlist work correctly with an Elementary frame.

Anything in a scroller, such as genlist, can pose a challenge to get working correctly with a frame.  This is because a frame can’t have its weight hinted to expand, or it won’t auto-collapse, and you can’t externally set a minimum size on a genlist because it is in a scroller.  This is a dirty but good example of how you can manage it correctly and have the size update correctly.  It is also a good tutorial in evas_object_size_hints for anyone who is interested.  I’ll put the code here and the comments should make it self explanatory.  If you have any questions, feel free to comment!

** For those who are  willing to handle things cleaner, but handle the frame collapsing manually rather than having it auto-collapse, do not fret!  I have written a tutorial to show you how to do it, and I personally prefer this method:  http://smhouston.us/follow-up-on-yesterdays-genlist-and-frame-example/

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *