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

chore: fix View painting when origin updated
This commit is contained in:
Shelley Vohr
2022-06-20 06:31:53 +02:00
committed by GitHub
parent ec98e95b8a
commit e2f42e5d99

View File

@@ -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_);
}