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

chore: fix View painting when origin updated

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2022-06-20 09:19:36 +02:00
committed by GitHub
parent 66c3319458
commit 32df7f58bb

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