mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Temporary fix for a bug in win32cpp that makes ListViews fail.
This commit is contained in:
parent
57dd8ed81e
commit
42d3a4e097
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user