public resize functions for Panel and TextList

This commit is contained in:
rolux 2010-07-07 09:41:04 +02:00
parent 360a3abbf2
commit 439647e2fd

View File

@ -1295,8 +1295,9 @@ requires
animate = {};
animate[self.options.edge] = size;
self.options.parent.animate(animate, 200, function() {
var i = (self.options.edge == "left" || self.options.edge == "top") ? 1 : 0;
Ox.Event.trigger("resize_" + self.ids[i], self.options.elements[i].width());
self.options.collapsed = !self.options.collapsed;
Ox.print("callback");
});
}
@ -3569,6 +3570,11 @@ requires
}
};
that.resizeColumn = function(id, width) {
resizeColumn(id, width);
return that;
}
that.sort = function(key, operator) {
var isSelected = key == self.options.sort[0].key;
self.options.sort = [
@ -3585,6 +3591,7 @@ requires
toggleSelected(self.options.columns[self.selectedColumn].id);
}
that.$body.sort(self.options.sort[0].key, self.options.sort[0].operator);
return that;
};
return that;
@ -4639,9 +4646,10 @@ requires
that.resize = function(id, size) {
// one can pass pos instead of id
var pos = Ox.isNumber(id) ? id : getPositionById(id);
Ox.print("pos", pos, self.options.elements, $.map(self.options.elements, function(v, i) { return v.element.options("id"); }))
// Ox.print("pos", pos, self.options.elements, $.map(self.options.elements, function(v, i) { return v.element.options("id"); }))
self.options.elements[pos].size = size;
setSizes();
return that;
};
return that;