| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-resizable-behavior
/iron-resizable-behavior.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-resizable-behavior
/iron-resizable-behavior.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 4 <link rel="import" href="/device_page/drag_behavior.html"> |
| 4 <link rel="import" href="/settings_shared_css.html"> | 5 <link rel="import" href="/settings_shared_css.html"> |
| 5 | 6 |
| 6 <dom-module id="display-layout"> | 7 <dom-module id="display-layout"> |
| 7 <template> | 8 <template> |
| 8 <style include="settings-shared"> | 9 <style include="settings-shared"> |
| 9 /* Use relative position with no offset so that display divs(children), | 10 /* Use relative position with no offset so that display divs(children), |
| 10 which have absolute positions, are offset from the displayArea div. */ | 11 which have absolute positions, are offset from the displayArea div. */ |
| 11 #displayArea { | 12 #displayArea { |
| 12 border: lightgrey solid 1px; | 13 border: lightgrey solid 1px; |
| 13 height: 100%; | 14 height: 100%; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 24 justify-content: center; | 25 justify-content: center; |
| 25 position: absolute; | 26 position: absolute; |
| 26 } | 27 } |
| 27 .display[selected] { | 28 .display[selected] { |
| 28 border: var(--google-blue-500) solid 2px; | 29 border: var(--google-blue-500) solid 2px; |
| 29 box-shadow: none; | 30 box-shadow: none; |
| 30 } | 31 } |
| 31 </style> | 32 </style> |
| 32 <div id="displayArea" on-iron-resize="calculateVisualScale_"> | 33 <div id="displayArea" on-iron-resize="calculateVisualScale_"> |
| 33 <template is="dom-repeat" items="[[displays]]"> | 34 <template is="dom-repeat" items="[[displays]]"> |
| 34 <div id="_[[item.id]]" class="display" | 35 <div id="_[[item.id]]" class="display" draggable="true" |
| 35 style$="[[getDivStyle_(item, visualScale)]]" | 36 style$="[[getDivStyle_(item.id, item.bounds, visualScale)]]" |
| 36 selected$="[[isSelected_(item, selectedDisplay)]]" | 37 selected$="[[isSelected_(item, selectedDisplay)]]" |
| 37 on-tap="onSelectDisplayTap_"> | 38 on-tap="onSelectDisplayTap_"> |
| 38 [[item.name]] | 39 [[item.name]] |
| 39 </div> | 40 </div> |
| 40 </template> | 41 </template> |
| 41 </div> | 42 </div> |
| 42 </template> | 43 </template> |
| 43 <script src="display_layout.js"></script> | 44 <script src="display_layout.js"></script> |
| 44 </dom-module> | 45 </dom-module> |
| OLD | NEW |