According to the BeBook, BListView passes the flags unchanged to the BView

constructor. This means we have to provide B_FRAME_EVENTS ourselves, if we
want don't want to enforce this in the BListView code. This fixes ticket
#5081 (Attribute list view scrollbar not maintained when window size changes).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34498 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-12-05 09:43:32 +00:00
parent 5b41cd61e6
commit ca8b3261b1

View File

@ -238,7 +238,7 @@ AttributeItem::operator!=(const AttributeItem& other) const
AttributeListView::AttributeListView(BRect frame, const char* name,
uint32 resizingMode)
: BListView(frame, name, B_SINGLE_SELECTION_LIST, resizingMode,
B_WILL_DRAW | B_NAVIGABLE | B_FULL_UPDATE_ON_RESIZE)
B_WILL_DRAW | B_NAVIGABLE | B_FULL_UPDATE_ON_RESIZE | B_FRAME_EVENTS)
{
}
@ -265,7 +265,7 @@ AttributeListView::SetTo(BMimeType* type)
_DeleteItems();
// fill it again
if (type == NULL)
return;