From 078b08e4edc6911cd7515980d372686590815bbd Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Tue, 20 Dec 2016 22:33:26 -0500 Subject: [PATCH] BListView: Fix missing update for list items. - According to the Be Book, one of BListItem::Update()'s responsibilities is updating the item's internal height/width. However, while we were providing such updates in the case of the item initially being added to the view, or when the list view's font was changed, we were not doing so on frame resize. This would lead to items having a stale width field in such a circumstance, leading to possibly incorrect behavior in apps relying on that field to be correct. --- src/kits/interface/ListView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kits/interface/ListView.cpp b/src/kits/interface/ListView.cpp index cd12e3f1ca..59f9d40e9f 100644 --- a/src/kits/interface/ListView.cpp +++ b/src/kits/interface/ListView.cpp @@ -257,6 +257,9 @@ void BListView::FrameResized(float newWidth, float newHeight) { _FixupScrollBar(); + + // notify items of new width. + _FontChanged(); }