sort element: add public resizeElement method

This commit is contained in:
rolux 2014-02-06 08:51:17 +00:00
parent 98740c09c4
commit e5ff815f4b
1 changed files with 5 additions and 1 deletions

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;
};