Merge branch 'grid-autosize-native-header'

Fix auto-sizing column labels when using native header in wxGrid.

See https://github.com/wxWidgets/wxWidgets/pull/1559
This commit is contained in:
Vadim Zeitlin
2019-09-18 14:32:02 +02:00
4 changed files with 39 additions and 13 deletions

View File

@@ -159,6 +159,12 @@ public:
// compute column title width
int GetColumnTitleWidth(const wxHeaderColumn& col);
// compute column title width for the column with the given index
int GetColumnTitleWidth(unsigned int idx)
{
return GetColumnTitleWidth(GetColumn(idx));
}
// implementation only from now on
// -------------------------------