SplitPanel: trigger resizestart event on mousedown
This commit is contained in:
parent
25df7e7c7f
commit
25ab552dcd
1 changed files with 6 additions and 1 deletions
|
@ -45,7 +45,8 @@ Ox.Resizebar = function(options, self) {
|
||||||
anyclick: toggle,
|
anyclick: toggle,
|
||||||
dragstart: dragstart,
|
dragstart: dragstart,
|
||||||
drag: drag,
|
drag: drag,
|
||||||
dragend: dragend
|
dragend: dragend,
|
||||||
|
mousedown: mousedown
|
||||||
})
|
})
|
||||||
.append($('<div>').addClass('OxSpace'))
|
.append($('<div>').addClass('OxSpace'))
|
||||||
.append($('<div>').addClass('OxLine'))
|
.append($('<div>').addClass('OxLine'))
|
||||||
|
@ -156,6 +157,10 @@ 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…
Add table
Reference in a new issue