Commit 0dc86f1a authored by lgcheng's avatar lgcheng Committed by Commit Bot

Re-center opt in dialog upon launching.

Re-center opt in dialog upon launching when no resizing is needed.

Bug: b/132199704
Change-Id: I2cbfd157c7b1be2428e3f76e82b8f389aa7a6976
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1752173Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Long Cheng <lgcheng@google.com>
Cr-Commit-Position: refs/heads/master@{#686522}
parent 364daf0e
...@@ -972,10 +972,6 @@ function setWindowBounds() { ...@@ -972,10 +972,6 @@ function setWindowBounds() {
if (outerHeight > screen.availHeight) { if (outerHeight > screen.availHeight) {
outerHeight = screen.availHeight; outerHeight = screen.availHeight;
} }
if (appWindow.outerBounds.width == outerWidth &&
appWindow.outerBounds.height == outerHeight) {
return;
}
appWindow.outerBounds.width = outerWidth; appWindow.outerBounds.width = outerWidth;
appWindow.outerBounds.height = outerHeight; appWindow.outerBounds.height = outerHeight;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment