X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fca418ae12286d47a0e8490185daa84fde9f20e9..fcb29b233888f7012ca6cf486c8287f5463787e0:/src/msw/listbox.cpp diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index bc989f5d32..c48879e34b 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -177,7 +177,7 @@ bool wxListBox::Create(wxWindow *parent, } // now we can compute our best size correctly, so do it if necessary - SetBestSize(size); + SetInitialSize(size); return true; }