diff options
-rw-r--r-- | ui/views/bubble/bubble_frame_view.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/views/bubble/bubble_frame_view.cc b/ui/views/bubble/bubble_frame_view.cc index f792c7f..88025b0 100644 --- a/ui/views/bubble/bubble_frame_view.cc +++ b/ui/views/bubble/bubble_frame_view.cc @@ -397,10 +397,13 @@ void BubbleFrameView::MirrorArrowIfOffScreen( // Otherwise it should invoke parent's Layout() to layout the content based // on the new bubble border. if (GetOffScreenLength(available_bounds, mirror_bounds, vertical) >= - GetOffScreenLength(available_bounds, window_bounds, vertical)) + GetOffScreenLength(available_bounds, window_bounds, vertical)) { bubble_border_->set_arrow(arrow); - else if (parent()) - parent()->Layout(); + } else { + if (parent()) + parent()->Layout(); + SchedulePaint(); + } } } |