Skip to content

Commit

Permalink
FZ editor: splitter thickness set to 1px when space around zones is z…
Browse files Browse the repository at this point in the history
…ero (#2020)
  • Loading branch information
SeraphimaZykova committed Apr 9, 2020
1 parent c355a2b commit 1f9d9c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/modules/fancyzones/editor/FancyZonesEditor/GridZone.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,16 @@ private bool IsVerticalSplit

private int SplitterThickness
{
get { return Math.Max(((App)Application.Current).ZoneSettings.Spacing, 5); }
get
{
Settings settings = ((App)Application.Current).ZoneSettings;
if (!settings.ShowSpacing)
{
return 1;
}

return Math.Max(settings.Spacing, 1);
}
}

private void UpdateSplitter()
Expand Down

0 comments on commit 1f9d9c6

Please sign in to comment.