mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix size changed width issue
This commit is contained in:
parent
a75553fbcf
commit
8325963047
2 changed files with 8 additions and 6 deletions
|
|
@ -432,6 +432,9 @@ namespace Flow.Launcher.Plugin.Program.Views
|
|||
|
||||
var workingWidth =
|
||||
listView.ActualWidth - SystemParameters.VerticalScrollBarWidth; // take into account vertical scrollbar
|
||||
|
||||
if (workingWidth <= 0) return;
|
||||
|
||||
var col1 = 0.25;
|
||||
var col2 = 0.15;
|
||||
var col3 = 0.60;
|
||||
|
|
|
|||
|
|
@ -21,16 +21,15 @@ namespace Flow.Launcher.Plugin.Sys
|
|||
ListView listView = sender as ListView;
|
||||
GridView gView = listView.View as GridView;
|
||||
|
||||
var workingWidth = listView.ActualWidth - SystemParameters.VerticalScrollBarWidth; // take into account vertical scrollbar
|
||||
var workingWidth =
|
||||
listView.ActualWidth - SystemParameters.VerticalScrollBarWidth; // take into account vertical scrollbar
|
||||
|
||||
if (workingWidth <= 0) return;
|
||||
|
||||
var col1 = 0.2;
|
||||
var col2 = 0.6;
|
||||
var col3 = 0.2;
|
||||
|
||||
if (workingWidth <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
gView.Columns[0].Width = workingWidth * col1;
|
||||
gView.Columns[1].Width = workingWidth * col2;
|
||||
gView.Columns[2].Width = workingWidth * col3;
|
||||
|
|
|
|||
Loading…
Reference in a new issue