Update wxSpinCtrl size while changing the base under OSX
Changing the base changes the textual representation of the number so we need to reset the best size of numeric box to enforce size recalculation.
This commit is contained in:
parent
5a676ac855
commit
016924e14c
@ -639,6 +639,7 @@ bool wxSpinCtrl::SetBase(int base)
|
||||
|
||||
m_base = base;
|
||||
|
||||
m_textCtrl->InvalidateBestSize();
|
||||
ResetTextValidator();
|
||||
|
||||
// ... but DoValueToText() after doing it.
|
||||
|
Loading…
Reference in New Issue
Block a user