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,
|
||||
dragstart: dragstart,
|
||||
drag: drag,
|
||||
dragend: dragend
|
||||
dragend: dragend,
|
||||
mousedown: mousedown
|
||||
})
|
||||
.append($('<div>').addClass('OxSpace'))
|
||||
.append($('<div>').addClass('OxLine'))
|
||||
|
@ -156,6 +157,10 @@ 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