diff --git a/static/js/sortElement.js b/static/js/sortElement.js index f4ca04631..5d336e001 100644 --- a/static/js/sortElement.js +++ b/static/js/sortElement.js @@ -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; };