sort element: add public resizeElement method

This commit is contained in:
rolux 2014-02-06 08:51:17 +00:00
parent 98740c09c4
commit e5ff815f4b

View file

@ -25,7 +25,7 @@ pandora.ui.sortElement = function(isNavigationView) {
$sortSelect = Ox.Select({
items: items,
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({
change: function(data) {
@ -78,6 +78,10 @@ pandora.ui.sortElement = function(isNavigationView) {
});
}
that.resizeElement = function(size) {
$sortSelect.options({width: size});
};
return that;
};