Chromium Code Reviews| Index: ui/views/layout/grid_layout.cc |
| diff --git a/ui/views/layout/grid_layout.cc b/ui/views/layout/grid_layout.cc |
| index 135fe19022c7677ba77bcae7900f4df595275cd1..efb781523b42e00bfa7227a5ff57f6caac8eb82f 100644 |
| --- a/ui/views/layout/grid_layout.cc |
| +++ b/ui/views/layout/grid_layout.cc |
| @@ -11,6 +11,7 @@ |
| #include "base/memory/ptr_util.h" |
| #include "ui/views/layout/layout_constants.h" |
| #include "ui/views/view.h" |
| +#include "ui/views/views_delegate.h" |
| #include "ui/views/window/dialog_delegate.h" |
| namespace views { |
| @@ -651,8 +652,9 @@ GridLayout::~GridLayout() { |
| // static |
| GridLayout* GridLayout::CreatePanel(View* host) { |
| GridLayout* layout = new GridLayout(host); |
| - layout->SetInsets(kPanelVertMargin, kButtonHEdgeMarginNew, |
| - kPanelVertMargin, kButtonHEdgeMarginNew); |
| + layout->SetInsets(ViewsDelegate::GetInstance()->GetInsetsMetric( |
| + InsetsMetric::BUBBLE_DIALOG)); |
|
Peter Kasting
2017/03/29 03:39:11
Did you choose to use BUBBLE_DIALOG because it was
|
| + host->SetLayoutManager(layout); |
|
Peter Kasting
2017/03/29 03:39:11
Can you also audit the existing CreatePanel() call
|
| return layout; |
| } |