1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

Allow slightly smaller font to fix an edge case.

With the minimum size of 21, it was still possible to hide the drop-down.
This commit is contained in:
James Crook 2020-02-14 13:06:25 +00:00
parent b837d49b6b
commit de2459d98a

View File

@ -270,7 +270,7 @@ void TimerToolBar::OnSize(wxSizeEvent & ev)
int mx = ev.GetSize().GetWidth() - 25;
int my = ev.GetSize().GetHeight();
int h = my-2;
h = wxMax(21, h);
h = wxMax(17, h);
h = wxMin(h, 77);
//wxLogDebug("Try h=%i dimensions(%i,%i)", h,mx,my);
@ -278,7 +278,7 @@ void TimerToolBar::OnSize(wxSizeEvent & ev)
do {
h--;
mAudioTime->SetDigitSize(h*0.66, h);
} while ((h > 21) && mAudioTime->IsTooBig(mx, my));
} while ((h > 17) && mAudioTime->IsTooBig(mx, my));
mAudioTime->Layout();
//wxLogDebug(" accept height:%i", h);