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 bb5085c02af82..8fb4d4c61e4f6 100644 --- a/shell/browser/ui/views/inspectable_web_contents_view_views.cc +++ b/shell/browser/ui/views/inspectable_web_contents_view_views.cc @@ -216,6 +216,8 @@ const std::u16string InspectableWebContentsViewViews::GetTitle() { void InspectableWebContentsViewViews::Layout() { if (!devtools_web_view_->GetVisible()) { contents_web_view_->SetBoundsRect(GetContentsBounds()); + // Propagate layout call to all children, for example browser views. + View::Layout(); return; } @@ -233,6 +235,9 @@ void InspectableWebContentsViewViews::Layout() { devtools_web_view_->SetBoundsRect(new_devtools_bounds); contents_web_view_->SetBoundsRect(new_contents_bounds); + // Propagate layout call to all children, for example browser views. + View::Layout(); + if (GetDelegate()) GetDelegate()->DevToolsResized(); }