Clear empty space beyond the right edge of the grid

See #18313.
This commit is contained in:
Artur Wieczorek
2018-12-27 10:25:02 +01:00
parent 48c71a5f04
commit 2f918abf3a

View File

@@ -2165,7 +2165,7 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc,
wxPGProperty* nextP = visPropArray[0];
int gridWidth = state->GetVirtualWidth();
int gridWidth = itemsRect->x + itemsRect->width;
// Calculate splitters positions
wxVector<int> splitterPos;
@@ -2501,6 +2501,11 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc,
y += rowHeight;
}
// Clear empty space beyond the right edge of the grid
dc.SetPen(wxPen(m_colEmptySpace));
dc.SetBrush(wxBrush(m_colEmptySpace));
dc.DrawRectangle(cellX, firstItemTopY, gridWidth - cellX, lastItemBottomY - firstItemTopY);
return y - 1 + vy;
}