Skip to content

Commit

Permalink
chore: fix BrowserView painting when origin updated (#34642)
Browse files Browse the repository at this point in the history
chore: fix View painting when origin updated

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Jun 20, 2022
1 parent 5174419 commit 36169d1
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 36169d1

Please sign in to comment.