sort element: add public resizeElement method
This commit is contained in:
parent
98740c09c4
commit
e5ff815f4b
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,7 @@ pandora.ui.sortElement = function(isNavigationView) {
|
||||||
$sortSelect = Ox.Select({
|
$sortSelect = Ox.Select({
|
||||||
items: items,
|
items: items,
|
||||||
value: ui[sortKey][0].key,
|
value: ui[sortKey][0].key,
|
||||||
width: !isEmbed && isNavigationView ? 120 + Ox.UI.SCROLLBAR_SIZE : 144
|
width: !isEmbed && isNavigationView && ui.clipColumns == 1 ? 120 + Ox.UI.SCROLLBAR_SIZE : 144
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
change: function(data) {
|
change: function(data) {
|
||||||
|
@ -78,6 +78,10 @@ pandora.ui.sortElement = function(isNavigationView) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
that.resizeElement = function(size) {
|
||||||
|
$sortSelect.options({width: size});
|
||||||
|
};
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue