From a34f59bb3d400e87875c1dd4111f42aca2d62066 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 18 Apr 2012 17:56:07 +0200 Subject: [PATCH] mac eventlog: open in a less obtrusive position --- SparkleShare/Mac/SparkleEventLog.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/SparkleShare/Mac/SparkleEventLog.cs b/SparkleShare/Mac/SparkleEventLog.cs index 40feeb45..d36c4b63 100755 --- a/SparkleShare/Mac/SparkleEventLog.cs +++ b/SparkleShare/Mac/SparkleEventLog.cs @@ -56,8 +56,13 @@ namespace SparkleShare { Delegate = new SparkleEventsDelegate (); // TODO: Window needs to be made resizable - SetFrame (new RectangleF (0, 0, 480, 640), true); - Center (); + int width = 480; + int height = 640; + float x = (float) (NSScreen.MainScreen.Frame.Width * 0.61); + float y = (float) (NSScreen.MainScreen.Frame.Height * 0.5 - (height * 0.5)); + + SetFrame (new RectangleF (x, y, width, height), true); + StyleMask = (NSWindowStyle.Closable | NSWindowStyle.Miniaturizable | @@ -69,7 +74,7 @@ namespace SparkleShare { BackingType = NSBackingStore.Buffered; - this.web_view = new WebView (new RectangleF (0, 0, 480, 579), "", "") { + this.web_view = new WebView (new RectangleF (0, 0, 481, 579), "", "") { PolicyDelegate = new SparkleWebPolicyDelegate () };