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

Bug2289: alternative fix...

... see also b23d98fd0577a907d4372c1a4b4e35981a3fcedc and
bed7b41af98243ec0760e3d48cbb53c0de0e1367
This commit is contained in:
Paul Licameli 2020-02-26 18:58:10 -05:00
parent f62500c3ab
commit 664dc59392

View File

@ -566,7 +566,10 @@ wxSlider * ShuttleGuiBase::AddSlider(
wxSlider * pSlider;
mpWind = pSlider = safenew wxSliderWrapper(GetParent(), miId,
pos, Min, Max,
wxDefaultPosition, wxDefaultSize,
wxDefaultPosition,
// Bug2289: On Linux at least, sliders like to be constructed with the
// proper size, not reassigned size later
( ( mItem.mWindowSize == wxSize{} ) ? wxDefaultSize : mItem.mWindowSize ),
GetStyle( wxSL_HORIZONTAL | wxSL_LABELS | wxSL_AUTOTICKS )
);
#if wxUSE_ACCESSIBILITY