Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
chore: fix BrowserView painting when origin updated (electron#34581)
Browse files Browse the repository at this point in the history
chore: fix View painting when origin updated
  • Loading branch information
codebytere authored and khalwa committed Feb 22, 2023
1 parent ee4ae1d commit 860cfcb
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 860cfcb

Please sign in to comment.