From 633cfe83eb1366ed185f2c1e8c568c2ee085ce0a Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 12 Aug 2021 12:21:14 +0200 Subject: [PATCH] fix: persist BrowserView background color when bounds offscreen --- 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 dbc356fdeaefd..7f7bfd3fe1cf3 100644 --- a/shell/browser/ui/views/inspectable_web_contents_view_views.cc +++ b/shell/browser/ui/views/inspectable_web_contents_view_views.cc @@ -215,7 +215,7 @@ void InspectableWebContentsViewViews::SetTitle(const std::u16string& title) { void InspectableWebContentsViewViews::Layout() { if (!devtools_web_view_->GetVisible()) { - contents_web_view_->SetBoundsRect(GetContentsBounds()); + contents_web_view_->SetBoundsRect(GetVisibleBounds()); return; }