Browse Source

fix: `<datalist>` bounds vertical cutoff (#34785)

fix: DataList bounds overflow

Co-authored-by: Shelley Vohr <[email protected]>
trop[bot] 2 years ago
parent
commit
54fa16a3df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shell/browser/ui/views/autofill_popup_view.cc

+ 1 - 1
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(