| Index: third_party/polymer/components-chromium/core-splitter/core-splitter-extracted.js
|
| diff --git a/third_party/polymer/components-chromium/core-splitter/core-splitter-extracted.js b/third_party/polymer/components-chromium/core-splitter/core-splitter-extracted.js
|
| deleted file mode 100644
|
| index ba3f69f7a00b85499bae4c64e5e6ce9345b4d8a5..0000000000000000000000000000000000000000
|
| --- a/third_party/polymer/components-chromium/core-splitter/core-splitter-extracted.js
|
| +++ /dev/null
|
| @@ -1,106 +0,0 @@
|
| -
|
| -
|
| - Polymer('core-splitter',Polymer.mixin({
|
| -
|
| - /**
|
| - * Possible values are `left`, `right`, `up` and `down`.
|
| - *
|
| - * @attribute direction
|
| - * @type string
|
| - * @default 'left'
|
| - */
|
| - direction: 'left',
|
| -
|
| - /**
|
| - * Minimum width to which the splitter target can be sized, e.g.
|
| - * `minSize="100px"`
|
| - *
|
| - * @attribute minSize
|
| - * @type string
|
| - * @default ''
|
| - */
|
| - minSize: '',
|
| -
|
| - /**
|
| - * Locks the split bar so it can't be dragged.
|
| - *
|
| - * @attribute locked
|
| - * @type boolean
|
| - * @default false
|
| - */
|
| - locked: false,
|
| -
|
| - /**
|
| - * By default the parent and siblings of the splitter are set to overflow hidden. This helps
|
| - * avoid elements bleeding outside the splitter regions. Set this property to true to allow
|
| - * these elements to overflow.
|
| - *
|
| - * @attribute allowOverflow
|
| - * @type boolean
|
| - * @default false
|
| - */
|
| - 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 =
|
| - this.previousElementSibling.style.overflow = 'hidden';
|
| - }
|
| - },
|
| -
|
| - directionChanged: function() {
|
| - this.isNext = this.direction === 'right' || this.direction === 'down';
|
| - this.horizontal = this.direction === 'up' || this.direction === 'down';
|
| - this.update();
|
| - },
|
| -
|
| - update: function() {
|
| - this.target = this.isNext ? this.nextElementSibling : this.previousElementSibling;
|
| - this.dimension = this.horizontal ? 'height' : 'width';
|
| - this.classList.toggle('horizontal', this.horizontal);
|
| - },
|
| -
|
| - targetChanged: function(old) {
|
| - if (old) {
|
| - old.style[old.__splitterMinSize] = '';
|
| - }
|
| - var min = this.target.__splitterMinSize = this.horizontal ? 'minHeight' : 'minWidth';
|
| - this.target.style[min] = this.minSize;
|
| - },
|
| -
|
| - trackStart: function() {
|
| - this.update();
|
| - this.size = parseInt(getComputedStyle(this.target)[this.dimension]);
|
| - },
|
| -
|
| - track: function(e) {
|
| - if (this.locked) {
|
| - return;
|
| - }
|
| - 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));
|
| -
|
|
|