From bf99ce22ccb9134fb37349da5c24f3929170b748 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 29 Jan 2012 18:53:55 +0000 Subject: More ui::Listview tweaks. --- src/ui/listview.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui') diff --git a/src/ui/listview.cc b/src/ui/listview.cc index 9fe9b4e..185b229 100644 --- a/src/ui/listview.cc +++ b/src/ui/listview.cc @@ -82,6 +82,11 @@ void ListView::resize() listview_scrollbar->set_value(listview_scroll); listview_scrollbar->show(); } else { + for (Children::iterator it = children().begin(); it != children().end(); it++) { + if ((*it) != static_cast(listview_scrollbar)) { + (*it)->set_width(width()); + } + } listview_scrollbar->hide(); } } -- cgit v1.2.3