lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master b7944ba 38/46: Resize only columns, not rows,


From: Greg Chicares
Subject: [lmi-commits] [lmi] master b7944ba 38/46: Resize only columns, not rows, in update_visible_columns()
Date: Wed, 22 Jul 2020 11:05:16 -0400 (EDT)

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

    Resize only columns, not rows, in update_visible_columns()
    
    Wrong wxGrid function was used and we were doing too much work
    unnecessarily.
---
 census_view.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/census_view.cpp b/census_view.cpp
index 06a7bda..95fe6a6 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -2284,7 +2284,8 @@ void CensusGridView::update_visible_columns()
     // have changed, so always auto-size them if we're configured to do so.
     if(autosize_columns_)
         {
-        grid_window_->AutoSize();
+        // Pass false to avoid setting min size to the best size.
+        grid_window_->AutoSizeColumns(false);
         }
 }
 



reply via email to

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