From 42d3a4e097abf6609a9b49e5a04fd46de81174c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20=C3=96nnerby?= Date: Tue, 6 May 2008 20:47:02 +0000 Subject: [PATCH] Temporary fix for a bug in win32cpp that makes ListViews fail. --- src/cube/TracklistView.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cube/TracklistView.cpp b/src/cube/TracklistView.cpp index 53ef2cede..3df23d7a9 100644 --- a/src/cube/TracklistView.cpp +++ b/src/cube/TracklistView.cpp @@ -55,9 +55,13 @@ using namespace musik::cube; void TracklistView::OnCreated() { this->infoView = this->AddChild(new TracklistInfoView()); - this->listView = this->AddChild(new ListView()); + //this->listView = this->AddChild(new ListView()); + + // BUG: Workaround of a bug in win32cpp. Create the listView in a Frame instead + this->listView = new ListView(); + Frame* listViewFrame = this->AddChild(new Frame(this->listView)); this->SetChildAlignment(this->infoView, ChildAlignCenter); this->SetChildFill(this->infoView, false); - this->SetFlexibleChild(listView); + this->SetFlexibleChild(listViewFrame); } \ No newline at end of file