| Index: polymer_0.5.0/bower_components/core-splitter/core-splitter.html
|
| diff --git a/bower_components/core-splitter/core-splitter.html b/polymer_0.5.0/bower_components/core-splitter/core-splitter.html
|
| similarity index 90%
|
| rename from bower_components/core-splitter/core-splitter.html
|
| rename to polymer_0.5.0/bower_components/core-splitter/core-splitter.html
|
| index 5d07b1dce6ff9dac55c558f0660ed0d040cc1933..ece9be0e6c1fad0571440c2b608b20cd19c7bea1 100644
|
| --- a/bower_components/core-splitter/core-splitter.html
|
| +++ b/polymer_0.5.0/bower_components/core-splitter/core-splitter.html
|
| @@ -42,6 +42,7 @@ Example:
|
| -->
|
|
|
| <link rel="import" href="../polymer/polymer.html">
|
| +<link rel="import" href="../core-resizable/core-resizable.html">
|
|
|
| <polymer-element name="core-splitter" attributes="direction locked minSize allowOverflow"
|
| on-trackstart="{{trackStart}}" on-track="{{track}}" on-down="{{preventSelection}}">
|
| @@ -53,7 +54,7 @@ Example:
|
| </template>
|
| <script>
|
|
|
| - Polymer('core-splitter', {
|
| + Polymer(Polymer.mixin({
|
|
|
| /**
|
| * Possible values are `left`, `right`, `up` and `down`.
|
| @@ -94,10 +95,21 @@ Example:
|
| */
|
| allowOverflow: false,
|
|
|
| + // Listen for resize requests on parent, since splitter is peer to resizables
|
| + resizerIsPeer: true,
|
| +
|
| ready: function() {
|
| this.directionChanged();
|
| },
|
|
|
| + attached: function() {
|
| + this.resizerAttachedHandler();
|
| + },
|
| +
|
| + detached: function() {
|
| + this.resizerDetachedHandler();
|
| + },
|
| +
|
| domReady: function() {
|
| if (!this.allowOverflow) {
|
| this.parentNode.style.overflow = this.nextElementSibling.style.overflow =
|
| @@ -137,12 +149,14 @@ Example:
|
| var d = e[this.horizontal ? 'dy' : 'dx'];
|
| this.target.style[this.dimension] =
|
| this.size + (this.isNext ? -d : d) + 'px';
|
| + this.notifyResize();
|
| },
|
|
|
| preventSelection: function(e) {
|
| e.preventDefault();
|
| }
|
| - });
|
| +
|
| + }, Polymer.CoreResizer));
|
|
|
| </script>
|
| -</polymer-element>
|
| +</polymer-element>
|
|
|