Commit 28df3539 authored by gogerald's avatar gogerald Committed by Commit Bot

[Payments] Center payment request dialog header

Bug: 840803
Change-Id: I3cf9698c58f8c7e885b16123c05e4a15f8ba53c8
Reviewed-on: https://chromium-review.googlesource.com/1049952Reviewed-by: default avatarMathieu Perreault <mathp@chromium.org>
Commit-Queue: Ganggui Tang <gogerald@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556800}
parent 27b4b13b
...@@ -184,7 +184,7 @@ void PaymentHandlerWebFlowViewController::FillContentView( ...@@ -184,7 +184,7 @@ void PaymentHandlerWebFlowViewController::FillContentView(
// time of first layout (nothing has loaded yet). Because of this, set it to. // time of first layout (nothing has loaded yet). Because of this, set it to.
// total_dialog_height - header_height. On the other hand, the width will be // total_dialog_height - header_height. On the other hand, the width will be
// properly set so it can be 0 here. // properly set so it can be 0 here.
web_view->SetPreferredSize(gfx::Size(0, kDialogHeight - 68)); web_view->SetPreferredSize(gfx::Size(0, kDialogHeight - 75));
content_view->AddChildView(web_view.release()); content_view->AddChildView(web_view.release());
} }
......
...@@ -191,12 +191,11 @@ void PopulateSheetHeaderView(bool show_back_arrow, ...@@ -191,12 +191,11 @@ void PopulateSheetHeaderView(bool show_back_arrow,
views::GridLayout* layout = container->SetLayoutManager( views::GridLayout* layout = container->SetLayoutManager(
std::make_unique<views::GridLayout>(container)); std::make_unique<views::GridLayout>(container));
constexpr int kHeaderTopVerticalInset = 14; constexpr int kVerticalInset = 14;
constexpr int kHeaderBottomVerticalInset = 8;
constexpr int kHeaderHorizontalInset = 16; constexpr int kHeaderHorizontalInset = 16;
container->SetBorder(views::CreateEmptyBorder( container->SetBorder(
kHeaderTopVerticalInset, kHeaderHorizontalInset, views::CreateEmptyBorder(kVerticalInset, kHeaderHorizontalInset,
kHeaderBottomVerticalInset, kHeaderHorizontalInset)); kVerticalInset, kHeaderHorizontalInset));
views::ColumnSet* columns = layout->AddColumnSet(0); views::ColumnSet* columns = layout->AddColumnSet(0);
// A column for the optional back arrow. // A column for the optional back arrow.
......
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