git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50223
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ // Ensure automatic width is not less than minimal width. See the
+ // comment in SetColSize() for explanation of why this isn't done
+ // in SetColSize().
+ if ( !setAsMin )
+ extentMax = wxMax(extentMax, GetColMinimalWidth(col));
+
SetColSize( col, extentMax );
if ( !GetBatchCount() )
{
SetColSize( col, extentMax );
if ( !GetBatchCount() )
{
+ // Ensure automatic width is not less than minimal height. See the
+ // comment in SetColSize() for explanation of why this isn't done
+ // in SetRowSize().
+ if ( !setAsMin )
+ extentMax = wxMax(extentMax, GetRowMinimalHeight(row));
+
SetRowSize(row, extentMax);
if ( !GetBatchCount() )
{
SetRowSize(row, extentMax);
if ( !GetBatchCount() )
{