Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2019-01-11 01:02:52 +0300
committerEric Maupin <ermaup@microsoft.com>2019-01-11 23:19:25 +0300
commit893e7165b1995618264ad33addea5d0c24684b50 (patch)
tree0cb1ae019f11bca854b120732839f55bda83021e /Xamarin.PropertyEditing.Mac
parent9dc6430388c7d2cd129d257be4781761d50394fa (diff)
[mac] Fix gradient alignment
Diffstat (limited to 'Xamarin.PropertyEditing.Mac')
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentEditor.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentEditor.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentEditor.cs
index 8e9b9cb..44f36a6 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentEditor.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/ColorComponentEditor.cs
@@ -243,9 +243,9 @@ namespace Xamarin.PropertyEditing.Mac
channelGroup.Label.Frame = labelFrame;
channelGroup.Editor.Frame = editorFrame;
channelGroup.Gradient.Frame = new CGRect (
- editorFrame.X,
+ editorFrame.X + .5f,
editorFrame.Y - DefaultGradientHeight + 1,
- editorFrame.Width - 16, DefaultGradientHeight);
+ editorFrame.Width - 15, DefaultGradientHeight);
channelGroup.Gradient.BorderColor = NSColor.DisabledControlText.CGColor;
channelGroup.Gradient.ContentsScale = Window?.Screen?.BackingScaleFactor ?? NSScreen.MainScreen.BackingScaleFactor;