From 5b28e0bc6fa036464a3f4cf13300819f805d39d4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 23 Dec 2014 17:31:23 -0500 Subject: [PATCH] Fix position of AU GUIs. I'm not sure if this will be right everywhere, but it's perfectly centered for me and corresponds to the spacing/padding that's present, so it seems right. --- gtk2_ardour/au_pluginui.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index fc773f54ae..de8219af0f 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -657,7 +657,10 @@ AUPluginUI::parent_cocoa_window () /* move the au_view down so that it doesn't overlap the top_box contents */ - NSPoint origin = { 0, static_cast (a.height) }; + const int spacing = 6; // main vbox spacing + const int pad = 4; // box pad + + NSPoint origin = { spacing + pad, static_cast (a.height) + (2 * spacing) + pad }; [au_view setFrameOrigin:origin]; [view addSubview:au_view positioned:NSWindowBelow relativeTo:NULL];