From: Mikko Rasa Date: Tue, 25 Jun 2013 18:45:00 +0000 (+0300) Subject: Autosize all items in a List X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=commitdiff_plain;h=768c65e13861f72929290ac2513df9975579e543 Autosize all items in a List --- diff --git a/source/list.cpp b/source/list.cpp index 0faf151..710d1fc 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -64,12 +64,13 @@ void List::autosize_rows(unsigned n) unsigned max_w = 0; unsigned total_h = 0; - for(unsigned i=0; (iautosize(); const Geometry &igeom = items[i]->get_geometry(); max_w = max(max_w, igeom.w); - total_h += igeom.h; + if(i