SplitPanel: trigger resizestart event on mousedown

This commit is contained in:
rolux 2013-02-20 17:56:26 +05:30
parent 25df7e7c7f
commit 25ab552dcd

View file

@ -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