diff options
author | David Robillard <d@drobilla.net> | 2014-12-23 17:31:23 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-24 13:00:32 -0500 |
commit | 5b28e0bc6fa036464a3f4cf13300819f805d39d4 (patch) | |
tree | 9749ee1dbdd0862b31fb8cafea19fa5f8210eddb /gtk2_ardour/au_pluginui.mm | |
parent | 8c8bc5103492aeacc64565655f4e939dbb73d02d (diff) |
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.
Diffstat (limited to 'gtk2_ardour/au_pluginui.mm')
-rw-r--r-- | gtk2_ardour/au_pluginui.mm | 5 |
1 files changed, 4 insertions, 1 deletions
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<CGFloat> (a.height) }; + const int spacing = 6; // main vbox spacing + const int pad = 4; // box pad + + NSPoint origin = { spacing + pad, static_cast<CGFloat> (a.height) + (2 * spacing) + pad }; [au_view setFrameOrigin:origin]; [view addSubview:au_view positioned:NSWindowBelow relativeTo:NULL]; |