Blind attempt to get audio box to work on Linux.

Originally committed to SVN as r990.
This commit is contained in:
Rodrigo Braz Monteiro 2007-04-03 23:29:51 +00:00
parent 9339f1c45b
commit a0f3e58894
1 changed files with 7 additions and 1 deletions

View File

@ -360,8 +360,14 @@ void AudioBox::OnSash(wxSashEvent& event) {
if (oldh == h) return;
// Resize
audioDisplay->SetSize(w,h);
audioDisplay->SetSizeHints(w,h,w,h);
audioDisplay->SetSize(w,h);
int _w,_h;
audioDisplay->GetSize(&_w,&_h);
audioDisplay->SetSizeHints(_w,_h,_w,_h);
//sashSizer->Fit(Sash);
sashSizer->Layout();
Sash->GetParent()->Layout();
// Store new size
Options.SetInt(_T("Audio Display Height"),h);