diff --git a/js/splitter.js b/js/splitter.js index 8d30154..31878db 100644 --- a/js/splitter.js +++ b/js/splitter.js @@ -46,6 +46,8 @@ angular.module('bgDirectives', []) handler.css('top', pos + 'px'); pane1.elem.css('height', pos + 'px'); pane2.elem.css('top', pos + 'px'); + + scope.$broadcast("bg-splitter-resizing", {height: pos}); } else { @@ -58,6 +60,8 @@ angular.module('bgDirectives', []) handler.css('left', pos + 'px'); pane1.elem.css('width', pos + 'px'); pane2.elem.css('left', pos + 'px'); + + scope.$broadcast("bg-splitter-resizing", {width: pos}); } }); @@ -67,6 +71,7 @@ angular.module('bgDirectives', []) }); angular.element(document).bind('mouseup', function (ev) { + if(drag) scope.$broadcast("bg-splitter-resized"); drag = false; }); }