Merge pull request #2407 from Flow-Launcher/syscommand-listview-bug

fix a negative width
This commit is contained in:
Kevin Zhang 2023-10-31 23:48:56 -05:00 committed by GitHub
commit a607cda436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,12 @@ namespace Flow.Launcher.Plugin.Sys
var workingWidth = listView.ActualWidth - SystemParameters.VerticalScrollBarWidth; // take into account vertical scrollbar
var col1 = 0.3;
var col2 = 0.7;
var col2 = 0.7;
if (workingWidth <= 0)
{
return;
}
gView.Columns[0].Width = workingWidth * col1;
gView.Columns[1].Width = workingWidth * col2;