forked from 0x2620/pandora
fix sort element
This commit is contained in:
parent
18183deccd
commit
9a5f981ffe
2 changed files with 10 additions and 9 deletions
|
@ -23,7 +23,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 : 160
|
width: isNavigationView ? 120 + Ox.UI.SCROLLBAR_SIZE : 144
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
change: function(data) {
|
change: function(data) {
|
||||||
|
@ -37,10 +37,10 @@ pandora.ui.sortElement = function(isNavigationView) {
|
||||||
pandora_itemsort: updateSelect
|
pandora_itemsort: updateSelect
|
||||||
}),
|
}),
|
||||||
|
|
||||||
$orderButton = OxButton({
|
$orderButton = Ox.Button({
|
||||||
overlap: 'left'
|
overlap: 'left',
|
||||||
title: getTitle(),
|
title: getButtonTitle(),
|
||||||
tooltip: getTooltip(),
|
tooltip: getButtonTooltip(),
|
||||||
type: 'image'
|
type: 'image'
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
|
@ -56,7 +56,8 @@ pandora.ui.sortElement = function(isNavigationView) {
|
||||||
}),
|
}),
|
||||||
|
|
||||||
that = Ox.FormElementGroup({
|
that = Ox.FormElementGroup({
|
||||||
elements: [$sortSelect, $orderButton]
|
elements: [$sortSelect, $orderButton],
|
||||||
|
float: 'right'
|
||||||
})
|
})
|
||||||
.css({
|
.css({
|
||||||
float: isNavigationView ? 'right' : 'left',
|
float: isNavigationView ? 'right' : 'left',
|
||||||
|
@ -73,8 +74,8 @@ pandora.ui.sortElement = function(isNavigationView) {
|
||||||
|
|
||||||
function updateButton() {
|
function updateButton() {
|
||||||
$orderButton.options({
|
$orderButton.options({
|
||||||
title: getTitle(),
|
title: getButtonTitle(),
|
||||||
tooltip: getTooltip()
|
tooltip: getButtonTooltip()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ pandora.ui.toolbar = function() {
|
||||||
) + '</b>';
|
) + '</b>';
|
||||||
}
|
}
|
||||||
function getListTitleLeft() {
|
function getListTitleLeft() {
|
||||||
return 332 - (
|
return 316 - (
|
||||||
['map', 'calendar'].indexOf(pandora.user.ui.listView) > -1 ? 180 : 0
|
['map', 'calendar'].indexOf(pandora.user.ui.listView) > -1 ? 180 : 0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue