From f235350052eeeb3e4ec66cec2e2173bdf613e302 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 27 Jun 2022 15:16:48 +0200 Subject: [PATCH] fix: DataList bounds overflow --- shell/browser/ui/views/autofill_popup_view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/ui/views/autofill_popup_view.cc b/shell/browser/ui/views/autofill_popup_view.cc index ce651f28becf6..fd2e50921460a 100644 --- a/shell/browser/ui/views/autofill_popup_view.cc +++ b/shell/browser/ui/views/autofill_popup_view.cc @@ -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(