From 0eff24ae4db82ac5cadf7e59405e206284c1504c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 19 Sep 2019 09:21:56 +0300 Subject: [PATCH] Use the maximum item height for autosizing List --- source/list.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/list.cpp b/source/list.cpp index 5d179e1..005f6fa 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -71,18 +71,16 @@ void List::autosize_special(const Part &part, Geometry &ageom) const const Sides &margin = part.get_margin(); unsigned max_w = 0; - unsigned total_h = 0; + unsigned max_h = 0; for(unsigned i=0; iautosize(igeom); max_w = max(max_w, igeom.w); - if(view_size==0 || i