Respect minimum grid column width when using native header too
Override wxHeaderColumn::GetMinWidth() to return the actual minimum width instead of just returning 0. Add a unit test verifying that this works as intended.
This commit is contained in:
committed by
Vadim Zeitlin
parent
2290d97453
commit
e5d59c6b7f
@@ -95,7 +95,7 @@ public:
|
||||
virtual wxString GetTitle() const wxOVERRIDE { return m_grid->GetColLabelValue(m_col); }
|
||||
virtual wxBitmap GetBitmap() const wxOVERRIDE { return wxNullBitmap; }
|
||||
virtual int GetWidth() const wxOVERRIDE { return m_grid->GetColSize(m_col); }
|
||||
virtual int GetMinWidth() const wxOVERRIDE { return 0; }
|
||||
virtual int GetMinWidth() const wxOVERRIDE { return m_grid->GetColMinimalAcceptableWidth(); }
|
||||
virtual wxAlignment GetAlignment() const wxOVERRIDE
|
||||
{
|
||||
int horz,
|
||||
|
Reference in New Issue
Block a user