| Index: ui/views/layout/grid_layout.cc
|
| diff --git a/ui/views/layout/grid_layout.cc b/ui/views/layout/grid_layout.cc
|
| index b45f1ca474dbdf7a17a9fd3acb1348b99213e9d2..41dcac0973c0ff760ce468722f312a69597c32e9 100644
|
| --- a/ui/views/layout/grid_layout.cc
|
| +++ b/ui/views/layout/grid_layout.cc
|
| @@ -650,8 +650,12 @@ GridLayout::~GridLayout() {
|
| // static
|
| GridLayout* GridLayout::CreatePanel(View* host) {
|
| GridLayout* layout = new GridLayout(host);
|
| - layout->SetInsets(kPanelVertMargin, kButtonHEdgeMarginNew,
|
| - kPanelVertMargin, kButtonHEdgeMarginNew);
|
| + LayoutDelegate* delegate = host->GetLayoutDelegate();
|
| + layout->SetInsets(
|
| + delegate->GetLayoutDistance(LayoutDelegate::PANEL_VERT_MARGIN),
|
| + delegate->GetLayoutDistance(LayoutDelegate::BUTTON_HEDGE_MARGIN_NEW),
|
| + delegate->GetLayoutDistance(LayoutDelegate::PANEL_VERT_MARGIN),
|
| + delegate->GetLayoutDistance(LayoutDelegate::BUTTON_HEDGE_MARGIN_NEW));
|
| return layout;
|
| }
|
|
|
|
|