fix: persist BrowserView background color when bounds offscreen (#30510)

This commit is contained in:
Shelley Vohr
2021-08-16 12:26:58 +02:00
committed by GitHub
parent 94111c9d5c
commit fcce2b16d5

View File

@@ -213,7 +213,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;
}