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

fix: DataList bounds overflow

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2022-07-05 12:22:35 -04:00
committed by GitHub
parent 5100807a6a
commit 283ddb684f

View File

@@ -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(