From 664dc59392e10d4177d117e8443b4760f3d6ffb6 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Wed, 26 Feb 2020 18:58:10 -0500 Subject: [PATCH] Bug2289: alternative fix... ... see also b23d98fd0577a907d4372c1a4b4e35981a3fcedc and bed7b41af98243ec0760e3d48cbb53c0de0e1367 --- src/ShuttleGui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ShuttleGui.cpp b/src/ShuttleGui.cpp index 03e7c9de7..f99d57ea2 100644 --- a/src/ShuttleGui.cpp +++ b/src/ShuttleGui.cpp @@ -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