mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Bug 2120 - Residual: Truncation of Selection toolbar too.
The problem was more general, and it affected the selection toolbar too, if undocked.
This commit is contained in:
@@ -617,6 +617,12 @@ void ToolBar::Updated()
|
||||
{
|
||||
if( IsDocked() )
|
||||
GetDock()->Updated();
|
||||
else
|
||||
// Bug 2120. Changing the choice also changes the size of the toolbar so
|
||||
// we need to update the client size, even if undocked.
|
||||
// If modifying/improving this, remember to test both changing the choice,
|
||||
// and clciking on the choice but not actually changing it.
|
||||
GetParent()->SetClientSize( GetSize() + wxSize( 2,2));
|
||||
//wxCommandEvent e( EVT_TOOLBAR_UPDATED, GetId() );
|
||||
//GetParent()->GetEventHandler()->AddPendingEvent( e );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user