| Index: polymer_0.5.0/bower_components/core-overlay/core-overlay.html
|
| diff --git a/bower_components/core-overlay/core-overlay.html b/polymer_0.5.0/bower_components/core-overlay/core-overlay.html
|
| similarity index 97%
|
| rename from bower_components/core-overlay/core-overlay.html
|
| rename to polymer_0.5.0/bower_components/core-overlay/core-overlay.html
|
| index a18f071fae8845e5373a60cd3648b7c91ba30ca9..13a59702e36e6ca755208a90062335f8ff93d5b7 100644
|
| --- a/bower_components/core-overlay/core-overlay.html
|
| +++ b/polymer_0.5.0/bower_components/core-overlay/core-overlay.html
|
| @@ -9,6 +9,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
|
| <link rel="import" href="../polymer/polymer.html">
|
| <link rel="import" href="../core-transition/core-transition.html">
|
| +<link rel="import" href="../core-resizable/core-resizable.html">
|
| <link rel="import" href="core-key-helper.html">
|
| <link rel="import" href="core-overlay-layer.html">
|
|
|
| @@ -115,7 +116,7 @@ object like this: `{v: 'top', h: 'right'}`.
|
| <script>
|
| (function() {
|
|
|
| - Polymer('core-overlay', {
|
| + Polymer(Polymer.mixin({
|
|
|
| publish: {
|
| /**
|
| @@ -236,7 +237,19 @@ object like this: `{v: 'top', h: 'right'}`.
|
| 'keydown': 'keydownHandler',
|
| 'core-transitionend': 'transitionend'
|
| },
|
| -
|
| +
|
| + attached: function() {
|
| + this.resizerAttachedHandler();
|
| + },
|
| +
|
| + detached: function() {
|
| + this.resizerDetachedHandler();
|
| + },
|
| +
|
| + resizerShouldNotify: function() {
|
| + return this.opened;
|
| + },
|
| +
|
| registerCallback: function(element) {
|
| this.layer = document.createElement('core-overlay-layer');
|
| this.keyHelper = document.createElement('core-key-helper');
|
| @@ -248,7 +261,7 @@ object like this: `{v: 'top', h: 'right'}`.
|
| ready: function() {
|
| this.target = this.target || this;
|
| // flush to ensure styles are installed before paint
|
| - Platform.flush();
|
| + Polymer.flush();
|
| },
|
|
|
| /**
|
| @@ -387,6 +400,7 @@ object like this: `{v: 'top', h: 'right'}`.
|
| // tasks which cause the overlay to actually open; typically play an
|
| // animation
|
| renderOpened: function() {
|
| + this.notifyResize();
|
| var transition = this.getTransition();
|
| if (transition) {
|
| transition.go(this.target, {opened: this.opened});
|
| @@ -571,11 +585,13 @@ object like this: `{v: 'top', h: 'right'}`.
|
| },
|
|
|
| resetTargetDimensions: function() {
|
| - if (!this.dimensions.size.v) {
|
| + if (!this.dimensions || !this.dimensions.size.v) {
|
| this.sizingTarget.style.maxHeight = '';
|
| + this.target.style.top = '';
|
| }
|
| - if (!this.dimensions.size.h) {
|
| + if (!this.dimensions || !this.dimensions.size.h) {
|
| this.sizingTarget.style.maxWidth = '';
|
| + this.target.style.left = '';
|
| }
|
| this.dimensions = null;
|
| },
|
| @@ -673,8 +689,9 @@ object like this: `{v: 'top', h: 'right'}`.
|
| };
|
| }
|
| return this[bound];
|
| - },
|
| - });
|
| + }
|
| +
|
| + }, Polymer.CoreResizer));
|
|
|
| // TODO(sorvell): This should be an element with private state so it can
|
| // be independent of overlay.
|
|
|