Use client size for calculating column sizes, not the full size
We need account for the place taken by the vertical scrollbar, if any.
This commit is contained in:
@@ -5075,7 +5075,7 @@ void wxDataViewMainWindow::UpdateColumnSizes()
|
|||||||
|
|
||||||
wxDataViewCtrl *owner = GetOwner();
|
wxDataViewCtrl *owner = GetOwner();
|
||||||
|
|
||||||
int fullWinWidth = GetSize().x;
|
int fullWinWidth = GetClientSize().x;
|
||||||
|
|
||||||
// Find the last shown column: we shouldn't bother to resize the columns
|
// Find the last shown column: we shouldn't bother to resize the columns
|
||||||
// that are hidden anyhow.
|
// that are hidden anyhow.
|
||||||
|
Reference in New Issue
Block a user