The initial value was not taken into account before because the best size computed before it was set, i.e. for the empty control, was always used, as it was never invalidated. Do invalidate it now if the control is created with non-empty value, in order to adjust its best, and initial, size appropriately to its contents. Closes #18507. Closes https://github.com/wxWidgets/wxWidgets/pull/1560
39 KiB
39 KiB