Merge pull request #4190 from Mapotempo/mt-bbox-padding

Add padding on the bounding box when focus on a track.
This commit is contained in:
Ilya Zverev 2016-09-28 13:22:38 +04:00 committed by GitHub
commit 39b80288db

View file

@ -817,8 +817,13 @@ void Framework::ShowBookmark(BookmarkAndCategory const & bnc)
void Framework::ShowTrack(Track const & track)
{
double const kPaddingScale = 1.2;
StopLocationFollow();
ShowRect(track.GetLimitRect());
auto rect = track.GetLimitRect();
rect.Scale(kPaddingScale);
ShowRect(rect);
}
void Framework::ClearBookmarks()