Browse Source

chore: fix BrowserView painting when origin updated (#34581)

chore: fix View painting when origin updated
Shelley Vohr 2 years ago
parent
commit
e2f42e5d99
1 changed files with 3 additions and 0 deletions
  1. 3 0
      shell/browser/native_browser_view_views.cc

+ 3 - 0
shell/browser/native_browser_view_views.cc

@@ -130,6 +130,9 @@ void NativeBrowserViewViews::SetBounds(const gfx::Rect& bounds) {
   view->SetBoundsRect(bounds);
   ResetAutoResizeProportions();
 
+  view->InvalidateLayout();
+  view->SchedulePaint();
+
   // Ensure draggable regions are properly updated to reflect new bounds.
   UpdateDraggableRegions(draggable_regions_);
 }