From fd2b8513f063abf428b4d22f6393226935d3bec9 Mon Sep 17 00:00:00 2001 From: Andreas Johansson Date: Thu, 3 Feb 2022 21:22:51 +0100 Subject: [PATCH] fix: persist BrowserView content bounds when calculating layout Reverting change introduced in PR: https://github.com/electron/electron/pull/30510 --- shell/browser/ui/views/inspectable_web_contents_view_views.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/ui/views/inspectable_web_contents_view_views.cc b/shell/browser/ui/views/inspectable_web_contents_view_views.cc index 35a32fd505158..7ab8ac51a2116 100644 --- a/shell/browser/ui/views/inspectable_web_contents_view_views.cc +++ b/shell/browser/ui/views/inspectable_web_contents_view_views.cc @@ -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; }