• tapted's avatar
    Mac: Give bubble windows an initial position before showing them. · 41a94267
    tapted authored
    Otherwise initialization that occurs offscreen can load incorrect screen
    metric information. E.g. a RenderView will assume it is on the primary
    display when loaded in a bubble, which results in it being created with
    an incorrect scale factor in some screen setups.
    
    This CL adds a call to -[BaseBubbleController setAnchorPosition] in the
    non-NIB initializer to give the window a good estimate of the position
    it will eventually be shown at.
    
    BUG=324748
    
    Review URL: https://codereview.chromium.org/573143002
    
    Cr-Commit-Position: refs/heads/master@{#295625}
    41a94267
extension_popup_controller.mm 14.7 KB