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

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2015-09-15 18:47:05 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2015-09-15 18:47:05 +0300
commit7d9d6ab6cc2577634669ee1df6aa6a25536edb06 (patch)
treeacec9c62777891cc23eb092502f0b33e67ee522f /main
parent39d6b8825a9abd47ea347a807edd5f857cb4bfaf (diff)
[Mac] Moved mac progress bar 2px up on El Capitan
Bug 33966 - XS: Toolbar progress bar is misaligned on El Capitan
Diffstat (limited to 'main')
-rw-r--r--main/src/addins/MacPlatform/MainToolbar/StatusBar.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/addins/MacPlatform/MainToolbar/StatusBar.cs b/main/src/addins/MacPlatform/MainToolbar/StatusBar.cs
index 560acb802c..f2e5d046f1 100644
--- a/main/src/addins/MacPlatform/MainToolbar/StatusBar.cs
+++ b/main/src/addins/MacPlatform/MainToolbar/StatusBar.cs
@@ -561,6 +561,7 @@ namespace MonoDevelop.MacIntegration.MainToolbar
}
static CGColor xamBlue = new CGColor (52f / 255, 152f / 255, 219f / 255);
+ static nfloat verticalOffset = MacSystemInformation.OsVersion >= MacSystemInformation.ElCapitan ? 2 : 0;
CALayer CreateProgressBarLayer (double width)
{
CALayer progress = ProgressLayer;
@@ -570,7 +571,7 @@ namespace MonoDevelop.MacIntegration.MainToolbar
progress.BackgroundColor = xamBlue;
progress.BorderColor = xamBlue;
progress.FillMode = CAFillMode.Forwards;
- progress.Frame = new CGRect (0, Frame.Height - barHeight, (nfloat)width, barHeight);
+ progress.Frame = new CGRect (0, Frame.Height - barHeight - verticalOffset, (nfloat)width, barHeight);
}
return progress;
}