update sort element size in embed case

This commit is contained in:
rolux 2013-03-01 11:19:55 +00:00
parent 2acfa59ba6
commit 61465a3846

View file

@ -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) {