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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue