FZ editor: splitter thickness set to 1px when space around zones is zero (#2020)

This commit is contained in:
Seraphima Zykova
2020-04-09 16:47:25 +03:00
committed by GitHub
parent c355a2b61e
commit 1f9d9c619e

View File

@@ -101,7 +101,16 @@ namespace FancyZonesEditor
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()