X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8497bbf52d4f7e37a6555040ae7def97d2618fe0..fae803f27be8ae1c4fe8f8775b333cc0fc80bdee:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index a2994e1679..8f8d30f975 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -4163,7 +4163,7 @@ wxGrid::wxGrid( wxWindow *parent, m_rowMinHeights(GRID_HASH_SIZE) { Create(); - SetBestFittingSize(size); + SetInitialSize(size); } bool wxGrid::Create(wxWindow *parent, wxWindowID id, @@ -4178,7 +4178,7 @@ bool wxGrid::Create(wxWindow *parent, wxWindowID id, m_rowMinHeights = wxLongToLongHashMap(GRID_HASH_SIZE); Create(); - SetBestFittingSize(size); + SetInitialSize(size); return true; }