1
0
Fork 0
forked from 0x2620/oxjs

some bugfixes

This commit is contained in:
rlx 2011-09-17 11:49:29 +00:00
commit ef1fa5fe84
14 changed files with 228 additions and 229 deletions

View file

@ -63,18 +63,18 @@ Ox.Resizebar = function(options, self) {
that.css({cursor: getCursor()});
function dragstart(event, e) {
function dragstart(data) {
if (self.options.resizable && !self.options.collapsed) {
self.drag = {
startPos: e[self.clientXY],
startPos: data[self.clientXY],
startSize: self.options.size
}
}
}
function drag(event, e) {
function drag(data) {
if (self.options.resizable && !self.options.collapsed) {
var d = e[self.clientXY] - self.drag.startPos,
var d = data[self.clientXY] - self.drag.startPos,
size = self.options.size;
self.options.size = Ox.limit(
self.drag.startSize + d * (self.isLeftOrTop ? 1 : -1),
@ -192,7 +192,7 @@ Ox.Resizebar = function(options, self) {
size: self.isLeftOrTop
? self.options.elements[1][self.dimensions[1]]()
: self.options.size
);
});
}
return that;