• Joe Downing's avatar
    Center the disconnect windows on screen when auto-hide is enabled · 8ee01678
    Joe Downing authored
    This change is a result of our discussions with the privacy folks.
    The old behavior was to center the disconnect window along the
    x-axis and dock it just above the taskbar.  The change is to now
    position the dialog near the center of the y-axis as well to
    maximize the chances of a local user seeing the disconnect window
    before it auto-hides.
    
    This change also fixes a bug where I was setting the position after
    animating the window so it would appear to jump when being reshown.
    
    BUG=882926
    
    Change-Id: I3e923937f10f24c3e719f311380a98b77644e866
    Reviewed-on: https://chromium-review.googlesource.com/1220029Reviewed-by: default avatarJamie Walch <jamiewalch@chromium.org>
    Commit-Queue: Joe Downing <joedow@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#590434}
    8ee01678
disconnect_window_win.cc 17.1 KB