Browse Source

fix: schedule a paint after browserview's background is set (#15798)

trop[bot] 6 years ago
parent
commit
688b345033
1 changed files with 1 additions and 0 deletions
  1. 1 0
      atom/browser/native_browser_view_views.cc

+ 1 - 0
atom/browser/native_browser_view_views.cc

@@ -29,6 +29,7 @@ void NativeBrowserViewViews::SetBounds(const gfx::Rect& bounds) {
 void NativeBrowserViewViews::SetBackgroundColor(SkColor color) {
   auto* view = GetInspectableWebContentsView()->GetView();
   view->SetBackground(views::CreateSolidBackground(color));
+  view->SchedulePaint();
 }
 
 // static