| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 --> | 9 --> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 Polymer.IronOverlayBehaviorImpl = { | 54 Polymer.IronOverlayBehaviorImpl = { |
| 55 | 55 |
| 56 properties: { | 56 properties: { |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * True if the overlay is currently displayed. | 59 * True if the overlay is currently displayed. |
| 60 */ | 60 */ |
| 61 opened: { | 61 opened: { |
| 62 observer: '_openedChanged', | 62 observer: '_openedChanged', |
| 63 type: Boolean, | 63 type: Boolean, |
| 64 value: false | 64 value: false, |
| 65 notify: true |
| 65 }, | 66 }, |
| 66 | 67 |
| 67 /** | 68 /** |
| 68 * True if the overlay was canceled when it was last closed. | 69 * True if the overlay was canceled when it was last closed. |
| 69 */ | 70 */ |
| 70 canceled: { | 71 canceled: { |
| 71 observer: '_canceledChanged', | 72 observer: '_canceledChanged', |
| 72 readOnly: true, | 73 readOnly: true, |
| 73 type: Boolean, | 74 type: Boolean, |
| 74 value: false | 75 value: false |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 this.backdropElement.complete(); | 363 this.backdropElement.complete(); |
| 363 } | 364 } |
| 364 }, | 365 }, |
| 365 | 366 |
| 366 _preparePositioning: function() { | 367 _preparePositioning: function() { |
| 367 this.style.transition = this.style.webkitTransition = 'none'; | 368 this.style.transition = this.style.webkitTransition = 'none'; |
| 368 this.style.transform = this.style.webkitTransform = 'none'; | 369 this.style.transform = this.style.webkitTransform = 'none'; |
| 369 this.style.display = ''; | 370 this.style.display = ''; |
| 370 }, | 371 }, |
| 371 | 372 |
| 372 _finishPositioning: function(target) { | 373 _finishPositioning: function() { |
| 373 this.style.display = 'none'; | 374 this.style.display = 'none'; |
| 374 this.style.transform = this.style.webkitTransform = ''; | 375 this.style.transform = this.style.webkitTransform = ''; |
| 375 // force layout to avoid application of transform | 376 // force layout to avoid application of transform |
| 376 this.offsetWidth; | 377 this.offsetWidth; |
| 377 this.style.transition = this.style.webkitTransition = ''; | 378 this.style.transition = this.style.webkitTransition = ''; |
| 378 }, | 379 }, |
| 379 | 380 |
| 380 _applyFocus: function() { | 381 _applyFocus: function() { |
| 381 if (this.opened) { | 382 if (this.opened) { |
| 382 if (!this.noAutoFocus) { | 383 if (!this.noAutoFocus) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 } | 425 } |
| 425 } | 426 } |
| 426 | 427 |
| 427 }; | 428 }; |
| 428 | 429 |
| 429 /** @polymerBehavior */ | 430 /** @polymerBehavior */ |
| 430 Polymer.IronOverlayBehavior = [Polymer.IronFitBehavior, Polymer.IronResizableB
ehavior, Polymer.IronOverlayBehaviorImpl]; | 431 Polymer.IronOverlayBehavior = [Polymer.IronFitBehavior, Polymer.IronResizableB
ehavior, Polymer.IronOverlayBehaviorImpl]; |
| 431 | 432 |
| 432 | 433 |
| 433 </script> | 434 </script> |
| OLD | NEW |