chore: fix BrowserView painting when origin updated (#34581)
chore: fix View painting when origin updated
This commit is contained in:
parent
ec98e95b8a
commit
e2f42e5d99
1 changed files with 3 additions and 0 deletions
|
@ -130,6 +130,9 @@ void NativeBrowserViewViews::SetBounds(const gfx::Rect& bounds) {
|
||||||
view->SetBoundsRect(bounds);
|
view->SetBoundsRect(bounds);
|
||||||
ResetAutoResizeProportions();
|
ResetAutoResizeProportions();
|
||||||
|
|
||||||
|
view->InvalidateLayout();
|
||||||
|
view->SchedulePaint();
|
||||||
|
|
||||||
// Ensure draggable regions are properly updated to reflect new bounds.
|
// Ensure draggable regions are properly updated to reflect new bounds.
|
||||||
UpdateDraggableRegions(draggable_regions_);
|
UpdateDraggableRegions(draggable_regions_);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue