Skip to content

Commit f69a6db

Browse files
committed
fix a negative width
1 parent 026e5f5 commit f69a6db

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Plugins/Flow.Launcher.Plugin.Sys/SysSettings.xaml.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ private void ListView_SizeChanged(object sender, SizeChangedEventArgs e)
2222

2323
var workingWidth = listView.ActualWidth - SystemParameters.VerticalScrollBarWidth; // take into account vertical scrollbar
2424
var col1 = 0.3;
25-
var col2 = 0.7;
25+
var col2 = 0.7;
26+
27+
if (workingWidth <= 0)
28+
{
29+
return;
30+
}
2631

2732
gView.Columns[0].Width = workingWidth * col1;
2833
gView.Columns[1].Width = workingWidth * col2;

0 commit comments

Comments
 (0)