mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +02:00
Fix sizing bug in InfoDialog (misuse of wxALIGN_BOTTOM)
This commit is contained in:
parent
4ae394ff5e
commit
1f0061ba79
@ -71,18 +71,12 @@ void HelpSystem::ShowInfoDialog( wxWindow *parent,
|
|||||||
S.SetStyle( wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH | wxTE_RICH2 |
|
S.SetStyle( wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH | wxTE_RICH2 |
|
||||||
wxTE_AUTO_URL | wxTE_NOHIDESEL | wxHSCROLL );
|
wxTE_AUTO_URL | wxTE_NOHIDESEL | wxHSCROLL );
|
||||||
S.AddTextWindow(message);
|
S.AddTextWindow(message);
|
||||||
|
|
||||||
|
S.SetBorder( 0 );
|
||||||
|
S.StartHorizontalLay(wxALIGN_CENTER_HORIZONTAL, 0);
|
||||||
|
S.AddStandardButtons(eOkButton);
|
||||||
|
S.EndHorizontalLay();
|
||||||
}
|
}
|
||||||
S.SetBorder( 0 );
|
|
||||||
S.StartHorizontalLay(wxALIGN_CENTER|wxALIGN_BOTTOM, 0);
|
|
||||||
S.AddStandardButtons(eOkButton);
|
|
||||||
|
|
||||||
S.EndHorizontalLay();
|
|
||||||
|
|
||||||
// Next three lines add a tiny dragger.
|
|
||||||
wxStatusBar * pBar = safenew wxStatusBar( &dlog );
|
|
||||||
pBar->SetSize( 18, 38);
|
|
||||||
S.AddWindow( pBar, wxALIGN_BOTTOM|wxALIGN_RIGHT );
|
|
||||||
|
|
||||||
S.EndVerticalLay();
|
S.EndVerticalLay();
|
||||||
|
|
||||||
// Smallest size is half default size. Seems reasonable.
|
// Smallest size is half default size. Seems reasonable.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user