public resize functions for Panel and TextList
This commit is contained in:
parent
fe8c500a45
commit
e9b98148fb
1 changed files with 10 additions and 2 deletions
|
@ -1295,8 +1295,9 @@ requires
|
||||||
animate = {};
|
animate = {};
|
||||||
animate[self.options.edge] = size;
|
animate[self.options.edge] = size;
|
||||||
self.options.parent.animate(animate, 200, function() {
|
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;
|
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) {
|
that.sort = function(key, operator) {
|
||||||
var isSelected = key == self.options.sort[0].key;
|
var isSelected = key == self.options.sort[0].key;
|
||||||
self.options.sort = [
|
self.options.sort = [
|
||||||
|
@ -3585,6 +3591,7 @@ requires
|
||||||
toggleSelected(self.options.columns[self.selectedColumn].id);
|
toggleSelected(self.options.columns[self.selectedColumn].id);
|
||||||
}
|
}
|
||||||
that.$body.sort(self.options.sort[0].key, self.options.sort[0].operator);
|
that.$body.sort(self.options.sort[0].key, self.options.sort[0].operator);
|
||||||
|
return that;
|
||||||
};
|
};
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
@ -4639,9 +4646,10 @@ requires
|
||||||
that.resize = function(id, size) {
|
that.resize = function(id, size) {
|
||||||
// one can pass pos instead of id
|
// one can pass pos instead of id
|
||||||
var pos = Ox.isNumber(id) ? id : getPositionById(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;
|
self.options.elements[pos].size = size;
|
||||||
setSizes();
|
setSizes();
|
||||||
|
return that;
|
||||||
};
|
};
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
Loading…
Reference in a new issue