Skip to content

Commit

Permalink
fix: <datalist> bounds vertical cutoff (electron#34759)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored and schetle committed Aug 18, 2022
1 parent e3e579e commit dba1884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/browser/ui/views/autofill_popup_view.cc
Expand Up @@ -174,7 +174,7 @@ void AutofillPopupView::DrawAutofillEntry(gfx::Canvas* canvas,
const int text_align =
is_rtl ? gfx::Canvas::TEXT_ALIGN_RIGHT : gfx::Canvas::TEXT_ALIGN_LEFT;
gfx::Rect value_rect = entry_rect;
value_rect.Inset(gfx::Insets::VH(kEndPadding, 0));
value_rect.Inset(gfx::Insets::VH(0, kEndPadding));

int x_align_left = value_rect.x();
const int value_width = gfx::GetStringWidth(
Expand Down

0 comments on commit dba1884

Please sign in to comment.