Commit f0b702c0 authored by Olesia Marukhno's avatar Olesia Marukhno Committed by Commit Bot

[omnibox] Fix pedal buttons misplacement

The first time when match changes its height, pedal button is misplaced
and overlaps with another match. This was caused by setting wrong bounds
for button row.

Bug: 1121934
Change-Id: I297a3551c370f8efd7c4079e14b9c6fcace70e84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2385378Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
Commit-Queue: Olesia Marukhno <olesiamarukhno@google.com>
Cr-Commit-Position: refs/heads/master@{#803217}
parent 18d55068
......@@ -413,10 +413,9 @@ void OmniboxResultView::Layout() {
// TODO(orinj): Determine and use the best way to set bounds; probably
// GetPreferredSize() with a layout manager.
// Put it below the suggestion view.
button_row_->SetBounds(0, button_row_->height(),
button_row_->SetBounds(0, suggestion_height,
suggestion_width - suggestion_indent,
suggestion_height);
button_row_->Layout();
button_row_->height());
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment