SplitPanel: trigger resizeend event on mouseup

This commit is contained in:
rolux 2013-02-20 18:19:57 +05:30
parent 25ab552dcd
commit 1c26874918

View file

@ -46,7 +46,12 @@ Ox.Resizebar = function(options, self) {
dragstart: dragstart, dragstart: dragstart,
drag: drag, drag: drag,
dragend: dragend, dragend: dragend,
mousedown: mousedown mousedown: function() {
triggerEvents('resizestart');
},
mouseup: function() {
triggerEvents('resizeend');
}
}) })
.append($('<div>').addClass('OxSpace')) .append($('<div>').addClass('OxSpace'))
.append($('<div>').addClass('OxLine')) .append($('<div>').addClass('OxLine'))
@ -157,10 +162,6 @@ Ox.Resizebar = function(options, self) {
return title; return title;
} }
function mousedown() {
triggerEvents('resizestart');
}
function reset() { function reset() {
if (self.options.resizable && !self.options.collapsed) { if (self.options.resizable && !self.options.collapsed) {
// fixme: silly, pass an option // fixme: silly, pass an option