-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ensure autofill popup view is > 1x1 in size #36121
Conversation
Oops meant to comment - it doesn't look like popup_->popup_bounds_.Union
returns a gfx::Rect
@@ -224,7 +224,8 @@ void AutofillPopupView::DoUpdateBoundsAndRedrawPopup() { | |||
if (!popup_) | |||
return; | |||
|
|||
GetWidget()->SetBounds(popup_->popup_bounds_); | |||
GetWidget()->SetBounds(popup_->popup_bounds_.Union( | |||
gfx::Rect(popup_->popup_bounds_.origin(), gfx::Size(1, 1)))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If popup_->popup_bounds_
could be empty, then so would be popup_->popup_bounds_in_view()
, which is used in some other places.
It was also mentioned in #26667 that passing zero size to |
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
No Release Notes |
* fix: ensure autofill popup view is > 1x1 in size ref electron#26667 * Update shell/browser/ui/views/autofill_popup_view.cc Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
* fix: ensure autofill popup view is > 1x1 in size ref electron#26667 * Update shell/browser/ui/views/autofill_popup_view.cc Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
Description of Change
Fixes #26667
Checklist
npm test
passesRelease Notes
Notes: none