commit e2f23c5dea0c2e97b8d54f6e5eba39adc732074a
parent c757143b74b0cb1c6a0505795f3112b2933cba20
Author: cfillion <cfillion@users.noreply.github.com>
Date: Fri, 8 Apr 2016 20:42:18 -0700
fix the browser's type column not taking all available space on win32
broken since 060addc9b4f6d0279583bc5fccc9b36106a97e19
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/browser.cpp b/src/browser.cpp
@@ -92,10 +92,6 @@ void Browser::onInit()
refresh();
-#ifdef LVSCW_AUTOSIZE_USEHEADER
- m_list->resizeColumn(m_list->columnCount() - 1, LVSCW_AUTOSIZE_USEHEADER);
-#endif
-
m_filterTimer = startTimer(200);
}
@@ -353,6 +349,10 @@ void Browser::refresh(const bool stale)
if(!m_loaded) {
m_loaded = true;
show();
+
+#ifdef LVSCW_AUTOSIZE_USEHEADER
+ m_list->resizeColumn(m_list->columnCount() - 1, LVSCW_AUTOSIZE_USEHEADER);
+#endif
}
}, handle(), stale);
}