From d5ffe62131429ee6fa65809254c74887b9125a17 Mon Sep 17 00:00:00 2001 From: Andy Warner Date: Sun, 6 Jul 2014 08:50:00 -0600 Subject: [PATCH] add option for disabling selection while the splitter is moving remove unneccessary css class setting the userSelect prop on the parent node not the body --- core-splitter.css | 6 +++--- core-splitter.html | 51 +++++++++++++++++++++++++++++++--------------- 2 files changed, 38 insertions(+), 19 deletions(-) diff --git a/core-splitter.css b/core-splitter.css index 1a36609..75d62d0 100644 --- a/core-splitter.css +++ b/core-splitter.css @@ -14,14 +14,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN box-shadow: inset 0 0 2px 1px #ccc; cursor: col-resize; } - + :host(.horizontal) { width: auto; height: 12px; cursor: row-resize; background-image: url(handle-h.svg); } - + :host(:hover, :active) { background-color: #ddd; -} \ No newline at end of file +} diff --git a/core-splitter.html b/core-splitter.html index 7f45989..15daa98 100644 --- a/core-splitter.html +++ b/core-splitter.html @@ -21,9 +21,9 @@
right
- + In the above example, dragging the splitter will resize the _left_ element. And -since the parent container is a flexbox and the _right_ element has +since the parent container is a flexbox and the _right_ element has `flex`, the _right_ elemnt will be auto-resized. For horizontal splitter set `direction` to "up" or "down". @@ -43,17 +43,17 @@ - - + +