mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-18 03:15:52 +01:00
backport tentative AU GUI fix from 3.0
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12036 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1524fc2b14
commit
bb13db6ea1
1 changed files with 8 additions and 1 deletions
|
|
@ -390,7 +390,11 @@ AUPluginUI::create_cocoa_view ()
|
|||
// watch for size changes of the view
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver:_notify
|
||||
selector:@selector(auViewResized:) name:NSWindowDidResizeNotification
|
||||
selector:@selector(auViewResized:) name:NSViewBoundsDidChangeNotification
|
||||
object:au_view];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver:_notify
|
||||
selector:@selector(auViewResized:) name:NSViewFrameDidChangeNotification
|
||||
object:au_view];
|
||||
|
||||
// Get the size of the new AU View's frame
|
||||
|
|
@ -408,6 +412,9 @@ void
|
|||
AUPluginUI::cocoa_view_resized ()
|
||||
{
|
||||
NSRect packFrame = [au_view frame];
|
||||
prefwidth = packFrame.size.width;
|
||||
prefheight = packFrame.size.height;
|
||||
low_box.set_size_request (prefwidth, prefheight);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue