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,
|
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
|
||||||
|
|
Loading…
Reference in a new issue