forked from 0x2620/pandora
update sort element size in embed case
This commit is contained in:
parent
2acfa59ba6
commit
61465a3846
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
pandora.ui.sortElement = function(isNavigationView) {
|
pandora.ui.sortElement = function(isNavigationView) {
|
||||||
|
|
||||||
var isClipView = pandora.isClipView(),
|
var isClipView = pandora.isClipView(),
|
||||||
|
isEmbed = pandora.isEmbedURL(),
|
||||||
items = (
|
items = (
|
||||||
isClipView ? pandora.site.clipKeys.map(function(key) {
|
isClipView ? pandora.site.clipKeys.map(function(key) {
|
||||||
return Ox.extend(Ox.clone(key), {
|
return Ox.extend(Ox.clone(key), {
|
||||||
|
@ -23,7 +24,7 @@ pandora.ui.sortElement = function(isNavigationView) {
|
||||||
$sortSelect = Ox.Select({
|
$sortSelect = Ox.Select({
|
||||||
items: items,
|
items: items,
|
||||||
value: pandora.user.ui[sortKey][0].key,
|
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({
|
.bindEvent({
|
||||||
change: function(data) {
|
change: function(data) {
|
||||||
|
|
Loading…
Reference in a new issue