Chromium Code Reviews| Index: chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html |
| diff --git a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html |
| index 6be2a3e0244cb92926062738208dedbef2cef349..051c5d215396fc77b29c553832b3c44022e3e444 100644 |
| --- a/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html |
| +++ b/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html |
| @@ -12,8 +12,31 @@ |
| <template> |
| <style include="settings-shared"> |
| add-printer-list { |
| - max-height: 350px; |
| + max-height: 310px; |
| overflow-y: auto; |
| + position: absolute; |
| + width: 100%; |
| + } |
| + |
| + .dialog-body .center { |
| + display: flex; |
| + justify-content: center; |
| + position: absolute; |
| + top: 50%; |
| + width: 100%; |
| + } |
| + |
| + #searchSpinner { |
| + position: absolute; |
| + top: 80%; |
| + } |
| + |
| + #searchSpinner paper-spinner { |
| + --paper-spinner-stroke-width: 2px; |
| + height: 15px; |
| + margin-left: 20px; |
|
michaelpg
2016/10/04 22:31:10
use -webkit-margin-start (-end) to work with RTL
xdai1
2016/10/04 23:36:19
Done.
|
| + margin-right: 3px; |
| + width: 15px; |
| } |
| #manuallyAddPrinterButton { |
| @@ -25,7 +48,13 @@ |
| <add-printer-list printers="[[discoveredPrinters]]" |
| selected-printer="{{selectedPrinter}}"> |
| </add-printer-list> |
| - <!-- TODO(xdai): Add the paper-spinner --> |
| + <div class="center" id="noPrinterMessage" hidden> |
| + $i18n{noPrinterNearbyMessage} |
| + </div> |
| + <div id="searchSpinner" hidden="[[!discovering_]]"> |
| + <paper-spinner active="[[discovering_]]"></paper-spinner> |
| + <span>$i18n{searchingNearbyPrinters}</span> |
| + </div> |
| </div> |
| <div class="dialog-buttons"> |
| <paper-button id="manuallyAddPrinterButton" |