Skip to content

Commit

Permalink
fix: <datalist> bounds vertical cutoff (#34786)
Browse files Browse the repository at this point in the history
fix: DataList bounds overflow

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Jul 5, 2022
1 parent 5100807 commit 283ddb6
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 283ddb6

Please sign in to comment.