diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index 840fc10464..ca0e4ad620 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -862,6 +862,13 @@ AUPluginUI::cocoa_view_resized () last_au_frame.origin.y != new_frame.origin.y) { new_frame.origin = last_au_frame.origin; [au_view setFrame:new_frame]; + + NSArray* subviews = [au_view subviews]; + for (unsigned long i = 0; i < [subviews count]; ++i) { + NSView* subview = [subviews objectAtIndex:i]; + [subview setFrame:NSMakeRect (0, 0, new_frame.size.width, new_frame.size.height)]; + } + /* also be sure to redraw the topbox because this can also go wrong. */ @@ -1081,6 +1088,12 @@ AUPluginUI::parent_cocoa_window () 0, 0, &xx, &yy); [au_view setFrame:NSMakeRect(xx, yy, req_width, req_height)]; + NSArray* subviews = [au_view subviews]; + for (unsigned long i = 0; i < [subviews count]; ++i) { + NSView* subview = [subviews objectAtIndex:i]; + [subview setFrame:NSMakeRect (0, 0, req_width, req_height)]; + } + last_au_frame = [au_view frame]; // watch for size changes of the view _notify = [ [NotificationObject alloc] initWithPluginUI:this andCocoaParent:NULL andTopLevelParent:win ];