From 61465a38468086f7fe90e94ded3e68b2f6f9de13 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 1 Mar 2013 11:19:55 +0000 Subject: [PATCH] update sort element size in embed case --- static/js/pandora/sortElement.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/sortElement.js b/static/js/pandora/sortElement.js index 317913c76..b12c25730 100644 --- a/static/js/pandora/sortElement.js +++ b/static/js/pandora/sortElement.js @@ -5,6 +5,7 @@ pandora.ui.sortElement = function(isNavigationView) { var isClipView = pandora.isClipView(), + isEmbed = pandora.isEmbedURL(), items = ( isClipView ? pandora.site.clipKeys.map(function(key) { return Ox.extend(Ox.clone(key), { @@ -23,7 +24,7 @@ pandora.ui.sortElement = function(isNavigationView) { $sortSelect = Ox.Select({ items: items, value: pandora.user.ui[sortKey][0].key, - width: isNavigationView ? 120 + Ox.UI.SCROLLBAR_SIZE : 144 + width: !isEmbed && isNavigationView ? 120 + Ox.UI.SCROLLBAR_SIZE : 144 }) .bindEvent({ change: function(data) {