fix: persist BrowserView content bounds when calculating layout (#32747)

Reverting change introduced in PR: https://github.com/electron/electron/pull/30510

Co-authored-by: Andreas Johansson <aj3621@tobii.com>
This commit is contained in:
andreasdj 2022-03-23 02:16:15 +01:00 committed by GitHub
parent 800b96fe14
commit 3744ac0a52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,7 @@ void InspectableWebContentsViewViews::SetTitle(const std::u16string& title) {
void InspectableWebContentsViewViews::Layout() {
if (!devtools_web_view_->GetVisible()) {
contents_web_view_->SetBoundsRect(GetVisibleBounds());
contents_web_view_->SetBoundsRect(GetContentsBounds());
return;
}