SplitPanel: trigger resizeend event on mouseup
This commit is contained in:
parent
25ab552dcd
commit
1c26874918
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue