mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 08:39:46 +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:
parent
b837d49b6b
commit
de2459d98a
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user