From f10f46a35e8d4b1e2655718cdc496d8215c0d1e3 Mon Sep 17 00:00:00 2001 From: Austin Date: Mon, 20 Oct 2014 09:21:23 -0400 Subject: [PATCH 1/3] Adding event emitting for nested binding listeners --- js/splitter.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/splitter.js b/js/splitter.js index fb9a577..669f93f 100644 --- a/js/splitter.js +++ b/js/splitter.js @@ -59,6 +59,8 @@ angular.module('bgDirectives', []) pane1.elem.css('width', pos + 'px'); pane2.elem.css('left', pos + 'px'); } + + scope.$emit('splitterResized'); }); handler.bind('mousedown', function (ev) { From f59eba03499bfa87004101c37b69f02072d4fdb0 Mon Sep 17 00:00:00 2001 From: Austin Date: Wed, 29 Oct 2014 10:23:04 -0400 Subject: [PATCH 2/3] Update style.css --- css/style.css | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/css/style.css b/css/style.css index 731a225..4be1b4b 100644 --- a/css/style.css +++ b/css/style.css @@ -18,30 +18,37 @@ .split-panes.horizontal > .split-handler { - width: 4px; + width: 15px; top: 0px; - left: 50%; + //left: 50%; bottom: 0px; cursor: ew-resize; + + background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAAMCAYAAABIvGxUAAADHmlDQ1BJQ0MgUHJvZmlsZQAAeAGFVN9r01AU/tplnbDhizpnEQk+aJFuZFN0Q5y2a1e6zVrqNrchSJumbVyaxiTtfrAH2YtvOsV38Qc++QcM2YNve5INxhRh+KyIIkz2IrOemzRNJ1MDufe73/nuOSfn5F6g+XFa0xQvDxRVU0/FwvzE5BTf8gFeHEMr/GhNi4YWSiZHQA/Tsnnvs/MOHsZsdO5v36v+Y9WalQwR8BwgvpQ1xCLhWaBpXNR0E+DWie+dMTXCzUxzWKcECR9nOG9jgeGMjSOWZjQ1QJoJwgfFQjpLuEA4mGng8w3YzoEU5CcmqZIuizyrRVIv5WRFsgz28B9zg/JfsKiU6Zut5xCNbZoZTtF8it4fOX1wjOYA1cE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2JlIEZpcmV3b3JrcyBDUzY8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CsO3s+UAAAAsSURBVAgdY7x69ep/BgaGRpZNmzYBaQYGxv//QQIMDExgEpnBcu3aNQoUAwChKRhfrNwRnQAAAABJRU5ErkJggg=="); + background-position: 50% 55%; + background-repeat: no-repeat; + cursor: col-resize; } .split-panes.horizontal > .split-pane1, .split-panes.horizontal > .split-pane2 { position: absolute; - height: 100%; + /*height: 100%;*/ } .split-panes.horizontal > .split-pane1 { - width: 50%; + //width: 50%; } .split-panes.horizontal > .split-pane2 { - left: 50%; + //left: 50%; right: 0px; - border-left: 1px solid #aaa; + top: 12px; + margin-left: 6px; + //border-left: 1px solid #aaa; } @@ -73,4 +80,4 @@ top: 50%; bottom: 0px; border-top: 1px solid #aaa; -} \ No newline at end of file +} From 2b0be3409f0a0cbc5ed70c2806bd21ad5108871f Mon Sep 17 00:00:00 2001 From: Austin Date: Tue, 2 Aug 2016 10:49:55 -0400 Subject: [PATCH 3/3] Create package.json --- package.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..621e3e6 --- /dev/null +++ b/package.json @@ -0,0 +1,10 @@ +{ + "name": "bg-splitter", + "version": "0.1.0", + "main": "js/splitter.js", + "repository": { + "type": "git", + "url": "git+https://github.com/swimlane/bg-splitter.git" + }, + "license": "MIT" +}