Don't extend last header column button, as the column itself doesn't do it neither
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -497,8 +497,8 @@ void wxHeaderCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
|
|||||||
GetClientSize(&w, &h);
|
GetClientSize(&w, &h);
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
int vw;
|
// int vw;
|
||||||
GetVirtualSize(&vw, NULL);
|
// GetVirtualSize(&vw, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wxAutoBufferedPaintDC dc(this);
|
wxAutoBufferedPaintDC dc(this);
|
||||||
@@ -553,7 +553,7 @@ void wxHeaderCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
|
|||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
if (i == count-1)
|
if (i == count-1)
|
||||||
{
|
{
|
||||||
colWidth = wxMax( colWidth, vw - xpos );
|
// colWidth = wxMax( colWidth, vw - xpos );
|
||||||
state |= wxCONTROL_DIRTY;
|
state |= wxCONTROL_DIRTY;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user