Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-dropdown-menu/paper-dropdown-menu-light-extracted.js

Issue 2158913007: Roll Polymer from 1.5.0 -> 1.6.0 to pick up native CSS custom props (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 (function() { 1 (function() {
2 'use strict'; 2 'use strict';
3 3
4 Polymer({ 4 Polymer({
5 is: 'paper-dropdown-menu-light', 5 is: 'paper-dropdown-menu-light',
6 6
7 behaviors: [ 7 behaviors: [
8 Polymer.IronButtonState, 8 Polymer.IronButtonState,
9 Polymer.IronControlState, 9 Polymer.IronControlState,
10 Polymer.PaperRippleBehavior, 10 Polymer.PaperRippleBehavior,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 * True if the dropdown is open. Otherwise, false. 67 * True if the dropdown is open. Otherwise, false.
68 */ 68 */
69 opened: { 69 opened: {
70 type: Boolean, 70 type: Boolean,
71 notify: true, 71 notify: true,
72 value: false, 72 value: false,
73 observer: '_openedChanged' 73 observer: '_openedChanged'
74 }, 74 },
75 75
76 /** 76 /**
77 * By default, the dropdown will constrain scrolling on the page
78 * to itself when opened.
79 * Set to true in order to prevent scroll from being constrained
80 * to the dropdown when it opens.
81 */
82 allowOutsideScroll: {
83 type: Boolean,
84 value: false
85 },
86
87 /**
77 * Set to true to disable the floating label. Bind this to the 88 * Set to true to disable the floating label. Bind this to the
78 * `<paper-input-container>`'s `noLabelFloat` property. 89 * `<paper-input-container>`'s `noLabelFloat` property.
79 */ 90 */
80 noLabelFloat: { 91 noLabelFloat: {
81 type: Boolean, 92 type: Boolean,
82 value: false, 93 value: false,
83 reflectToAttribute: true 94 reflectToAttribute: true
84 }, 95 },
85 96
86 /** 97 /**
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 283
273 _valueChanged: function() { 284 _valueChanged: function() {
274 // Only update if it's actually different. 285 // Only update if it's actually different.
275 if (this.$.input && this.$.input.textContent !== this.value) { 286 if (this.$.input && this.$.input.textContent !== this.value) {
276 this.$.input.textContent = this.value; 287 this.$.input.textContent = this.value;
277 } 288 }
278 this._setHasContent(!!this.value); 289 this._setHasContent(!!this.value);
279 }, 290 },
280 }); 291 });
281 })(); 292 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698