lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master b399a7d 40/46: Remove automatic column auto-s


From: Greg Chicares
Subject: [lmi-commits] [lmi] master b399a7d 40/46: Remove automatic column auto-sizing in wxGrid-based census view
Date: Wed, 22 Jul 2020 11:05:16 -0400 (EDT)

branch: master
commit b399a7db8ee24af7ef5668a8bc531cd076bcc2f2
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Vadim Zeitlin <vadim@tt-solutions.com>

    Remove automatic column auto-sizing in wxGrid-based census view
    
    This is too slow to be usable for now, so disable it completely until a
    more efficient (constant time, rather than O(N*M), where N and M are
    numbers of columns and rows respectively) version is implemented.
---
 census_view.cpp | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/census_view.cpp b/census_view.cpp
index 81e564f..068e4f7 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -2274,15 +2274,6 @@ void CensusGridView::update_visible_columns()
             grid_table_->AppendCols(new_columns_count - old_columns_count);
             }
 
-        // Recompute the best fitting sizes if the columns have changed.
-        // Ideally, we would only do it for the new columns, but this would be
-        // more complicated, and for now we prefer to keep the things simple.
-        if(autosize_columns_)
-            {
-            // Pass false to avoid setting min size to the best size.
-            grid_window_->AutoSizeColumns(false);
-            }
-
         grid_window_->SetGridCursor
             (cursor_row
             ,std::min(cursor_col, new_columns_count - 1)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]