| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 (function() { | 5 (function() { |
| 6 /** | 6 /** |
| 7 * Size of additional padding in the inner scrollable section of the dropdown. | 7 * Size of additional padding in the inner scrollable section of the dropdown. |
| 8 */ | 8 */ |
| 9 var DROPDOWN_INNER_PADDING = 12; | 9 var DROPDOWN_INNER_PADDING = 12; |
| 10 | 10 |
| 11 /** Size of vertical padding on the outer #dropdown element. */ | 11 /** Size of vertical padding on the outer #dropdown element. */ |
| 12 var DROPDOWN_OUTER_PADDING = 2; | 12 var DROPDOWN_OUTER_PADDING = 2; |
| 13 | 13 |
| 14 /** Minimum height of toolbar dropdowns (px). */ | 14 /** Minimum height of toolbar dropdowns (px). */ |
| 15 var MIN_DROPDOWN_HEIGHT = 300; | 15 var MIN_DROPDOWN_HEIGHT = 200; |
| 16 | 16 |
| 17 Polymer({ | 17 Polymer({ |
| 18 is: 'viewer-toolbar-dropdown', | 18 is: 'viewer-toolbar-dropdown', |
| 19 | 19 |
| 20 properties: { | 20 properties: { |
| 21 /** String to be displayed at the top of the dropdown. */ | 21 /** String to be displayed at the top of the dropdown. */ |
| 22 header: String, | 22 header: String, |
| 23 | 23 |
| 24 /** Icon to display when the dropdown is closed. */ | 24 /** Icon to display when the dropdown is closed. */ |
| 25 closedIcon: String, | 25 closedIcon: String, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 animateExit_: function() { | 132 animateExit_: function() { |
| 133 return this.$.dropdown.animate([ | 133 return this.$.dropdown.animate([ |
| 134 {transform: 'translateY(0)', opacity: 1}, | 134 {transform: 'translateY(0)', opacity: 1}, |
| 135 {transform: 'translateY(-5px)', opacity: 0} | 135 {transform: 'translateY(-5px)', opacity: 0} |
| 136 ], {duration: 100, easing: 'cubic-bezier(0.4, 0, 1, 1)'}); | 136 ], {duration: 100, easing: 'cubic-bezier(0.4, 0, 1, 1)'}); |
| 137 } | 137 } |
| 138 }); | 138 }); |
| 139 | 139 |
| 140 })(); | 140 })(); |
| OLD | NEW |