New issue
Advanced search Search tips

Issue 871765 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Aug 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

views::Button believes it's always visible when the parent widget is visible

Project Member Reported by vasi...@chromium.org, Aug 7

Issue description

Chrome Version: 70.0.3515.0
OS: desktop

- Create a bubble (views::BubbleDialogDelegateView) with many HoverButtons inside it and limit its height. Optionally one can use a ScrollView.
- Add s log statement to Button::VisibilityChanged and Button::ShouldEnterHoveredState.
- Show the bubble above or below the mouse cursor.

All the buttons will print from Button::VisibilityChanged that |visible| which is obviously false as the bubble has a limited height. One of the hover button will try to enter the hovered state in Button::ShouldEnterHoveredState because it thinks that it's just below the cursor.

Why is it bad?
See Issue 871762 for the crash happening as the result.
 
Owner: sky@chromium.org
Status: WontFix (was: Untriaged)
Visible and actually drawn where the use can see it are two different things. Trying to capture the later would be quite expensive, and in most cases is unnecessary, which is why we don't have a good way to test for it.

Sign in to add a comment