Make row/column drag-resizing in wxGrid "live"
Update the column width immediately, as it's being dragged, instead of drawing a temporary line showing the new column boundary using wxINVERT. This results in better user experience, as it the effect of changing the column width can be immediately seen (especially important for non-left aligned columns or columns using ellipsizition) and, equally if not more importantly, fixes wxGrid drag-resize not showing any visible UI at all with wxGTK3 and wxOSX where wxINVERT is not implemented.
This commit is contained in:
@@ -1144,10 +1144,7 @@ TEST_CASE_METHOD(GridTestCase, "Grid::ColumnMinWidth", "[grid]")
|
||||
sim.MouseUp();
|
||||
wxYield();
|
||||
|
||||
if ( m_grid->IsUsingNativeHeader() )
|
||||
CHECK(m_grid->GetColSize(0) == startwidth);
|
||||
else
|
||||
CHECK(m_grid->GetColSize(0) == newminwidth);
|
||||
CHECK(m_grid->GetColSize(0) == newminwidth);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user