Skip to content

Commit

Permalink
Merge pull request #2407 from Flow-Launcher/syscommand-listview-bug
Browse files Browse the repository at this point in the history
fix a negative width
  • Loading branch information
taooceros authored Nov 1, 2023
2 parents 026e5f5 + f69a6db commit a607cda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Plugins/Flow.Launcher.Plugin.Sys/SysSettings.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ private void ListView_SizeChanged(object sender, SizeChangedEventArgs e)

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;
Expand Down

0 comments on commit a607cda

Please sign in to comment.