mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #2407 from Flow-Launcher/syscommand-listview-bug
fix a negative width
This commit is contained in:
commit
a607cda436
1 changed files with 6 additions and 1 deletions
|
|
@ -24,6 +24,11 @@ namespace Flow.Launcher.Plugin.Sys
|
||||||
var col1 = 0.3;
|
var col1 = 0.3;
|
||||||
var col2 = 0.7;
|
var col2 = 0.7;
|
||||||
|
|
||||||
|
if (workingWidth <= 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
gView.Columns[0].Width = workingWidth * col1;
|
gView.Columns[0].Width = workingWidth * col1;
|
||||||
gView.Columns[1].Width = workingWidth * col2;
|
gView.Columns[1].Width = workingWidth * col2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue