From 1f9d9c619ee4134e1f3adec28fccb09e12bccb72 Mon Sep 17 00:00:00 2001 From: Seraphima Zykova Date: Thu, 9 Apr 2020 16:47:25 +0300 Subject: [PATCH] FZ editor: splitter thickness set to 1px when space around zones is zero (#2020) --- .../editor/FancyZonesEditor/GridZone.xaml.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/GridZone.xaml.cs b/src/modules/fancyzones/editor/FancyZonesEditor/GridZone.xaml.cs index cb37c20650..5a8e330010 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/GridZone.xaml.cs +++ b/src/modules/fancyzones/editor/FancyZonesEditor/GridZone.xaml.cs @@ -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()