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,
drag: drag,
dragend: dragend,
mousedown: mousedown
mousedown: function() {
triggerEvents('resizestart');
},
mouseup: function() {
triggerEvents('resizeend');
}
})
.append($('<div>').addClass('OxSpace'))
.append($('<div>').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