mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-08 08:01:19 +02:00
Bug 2477 - visibility of newly added focused track
Problem: Newly added track which is set as the focus can be only partially visible or invisible. If TrackPanel::OnEnsureVisible is called after a new track has been added, then in that function the line: mListener->TP_ScrollUpDown(height); can lead to incorrect results, as the vertical scrollbars have not yet been updated to take into account the additional track. Fix: Update the scrollbars in TrackPanel::OnTrackListResizing().
This commit is contained in:
parent
adbc1ba4b7
commit
cc1c395b33
@ -699,6 +699,9 @@ void TrackPanel::OnTrackListResizing(TrackListEvent & e)
|
||||
if( t && t->HasOwner() )
|
||||
UpdateVRuler(t.get());
|
||||
e.Skip();
|
||||
|
||||
// fix for bug 2477
|
||||
mListener->TP_RedrawScrollbars();
|
||||
}
|
||||
|
||||
// Tracks have been removed from the list.
|
||||
|
Loading…
x
Reference in New Issue
Block a user