mac eventlog: open in a less obtrusive position
This commit is contained in:
parent
a7884fc1f1
commit
a34f59bb3d
|
@ -56,8 +56,13 @@ namespace SparkleShare {
|
||||||
Delegate = new SparkleEventsDelegate ();
|
Delegate = new SparkleEventsDelegate ();
|
||||||
// TODO: Window needs to be made resizable
|
// TODO: Window needs to be made resizable
|
||||||
|
|
||||||
SetFrame (new RectangleF (0, 0, 480, 640), true);
|
int width = 480;
|
||||||
Center ();
|
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 |
|
StyleMask = (NSWindowStyle.Closable |
|
||||||
NSWindowStyle.Miniaturizable |
|
NSWindowStyle.Miniaturizable |
|
||||||
|
@ -69,7 +74,7 @@ namespace SparkleShare {
|
||||||
BackingType = NSBackingStore.Buffered;
|
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 ()
|
PolicyDelegate = new SparkleWebPolicyDelegate ()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue