Alter the order in which we updated our cached items. This fixes things like mmu_man's Themes app which has somewhat unusual list items that embed BViews.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28580 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2008-11-09 18:20:01 +00:00
parent aa22a3cfda
commit c02466e6ee

View File

@ -486,11 +486,9 @@ BListView::AddItem(BListItem *item, int32 index)
if (Window()) {
BFont font;
GetFont(&font);
item->Update(this, &font);
_RecalcItemTops(index);
item->Update(this, &font);
_FixupScrollBar();
_InvalidateFrom(index);
}
@ -510,10 +508,9 @@ BListView::AddItem(BListItem* item)
if (Window()) {
BFont font;
GetFont(&font);
_RecalcItemTops(CountItems() - 1);
item->Update(this, &font);
_RecalcItemTops(CountItems() - 1);
_FixupScrollBar();
InvalidateItem(CountItems() - 1);