From 1c268749186085f6c2166e076aaa09e4ddc938e7 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 20 Feb 2013 18:19:57 +0530 Subject: [PATCH] SplitPanel: trigger resizeend event on mouseup --- source/Ox.UI/js/Bar/Resizebar.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/Bar/Resizebar.js b/source/Ox.UI/js/Bar/Resizebar.js index 73a9acd5..d1586bdc 100644 --- a/source/Ox.UI/js/Bar/Resizebar.js +++ b/source/Ox.UI/js/Bar/Resizebar.js @@ -46,7 +46,12 @@ Ox.Resizebar = function(options, self) { dragstart: dragstart, drag: drag, dragend: dragend, - mousedown: mousedown + mousedown: function() { + triggerEvents('resizestart'); + }, + mouseup: function() { + triggerEvents('resizeend'); + } }) .append($('
').addClass('OxSpace')) .append($('
').addClass('OxLine')) @@ -157,10 +162,6 @@ Ox.Resizebar = function(options, self) { return title; } - function mousedown() { - triggerEvents('resizestart'); - } - function reset() { if (self.options.resizable && !self.options.collapsed) { // fixme: silly, pass an option