Skip to content

Commit

Permalink
chore: fix BrowserView painting when origin updated (#34581)
Browse files Browse the repository at this point in the history
chore: fix View painting when origin updated
  • Loading branch information
codebytere committed Jun 20, 2022
1 parent ec98e95 commit e2f42e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/browser/native_browser_view_views.cc
Expand Up @@ -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_);
}
Expand Down

0 comments on commit e2f42e5

Please sign in to comment.