Chromium Code Reviews| Index: chrome/browser/ui/views/device_chooser_content_view.cc |
| diff --git a/chrome/browser/ui/views/device_chooser_content_view.cc b/chrome/browser/ui/views/device_chooser_content_view.cc |
| index ea0e5684e80ab112a7cc46243c7e7e08e6a72329..5bc4b26749a16ddfa6581d128fee53290a66e733 100644 |
| --- a/chrome/browser/ui/views/device_chooser_content_view.cc |
| +++ b/chrome/browser/ui/views/device_chooser_content_view.cc |
| @@ -107,7 +107,8 @@ void DeviceChooserContentView::Layout() { |
| (rect.height() - kThrobberDiameter) / 2, |
| kThrobberDiameter, kThrobberDiameter); |
| turn_adapter_off_help_->SetPosition( |
| - gfx::Point(kAdapterOffHelpLinkPadding, kAdapterOffHelpLinkPadding)); |
| + gfx::Point((rect.width() - turn_adapter_off_help_->width()) / 2, |
| + (rect.height() - turn_adapter_off_help_->height()) / 2)); |
|
sky
2017/01/10 23:48:31
Might this be on top of the throbber?
juncai
2017/01/11 00:12:50
No. The adapter off message will only be shown whe
sky
2017/01/11 00:36:14
Ok, thanks. Could you add a comment here to that e
juncai
2017/01/11 18:13:43
Done.
|
| turn_adapter_off_help_->SizeToFit(rect.width() - |
| 2 * kAdapterOffHelpLinkPadding); |
| views::View::Layout(); |