fix: <datalist> bounds vertical cutoff (#34759)

This commit is contained in:
Shelley Vohr 2022-06-29 10:14:03 +02:00 committed by GitHub
parent 6257e0c348
commit 35ff95d3c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,7 +174,7 @@ void AutofillPopupView::DrawAutofillEntry(gfx::Canvas* canvas,
const int text_align = const int text_align =
is_rtl ? gfx::Canvas::TEXT_ALIGN_RIGHT : gfx::Canvas::TEXT_ALIGN_LEFT; is_rtl ? gfx::Canvas::TEXT_ALIGN_RIGHT : gfx::Canvas::TEXT_ALIGN_LEFT;
gfx::Rect value_rect = entry_rect; 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(); int x_align_left = value_rect.x();
const int value_width = gfx::GetStringWidth( const int value_width = gfx::GetStringWidth(