moved positioning logic to AMPopoverPanel, so that it automatically places itself around a given NSView, with the given size