map/calendar with clips: resize sort element depending on width
This commit is contained in:
parent
e5ff815f4b
commit
82c15bb138
1 changed files with 7 additions and 1 deletions
|
@ -63,7 +63,8 @@ pandora.ui.navigationView = function(type, videoRatio) {
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
resize: function() {
|
resize: function(data) {
|
||||||
|
pandora.$ui.sortElement.resizeElement(getSortSelectWidth(data.size));
|
||||||
$list.size()
|
$list.size()
|
||||||
},
|
},
|
||||||
resizeend: function(data) {
|
resizeend: function(data) {
|
||||||
|
@ -76,6 +77,7 @@ pandora.ui.navigationView = function(type, videoRatio) {
|
||||||
} else {
|
} else {
|
||||||
size = listSizes[2];
|
size = listSizes[2];
|
||||||
}
|
}
|
||||||
|
pandora.$ui.sortElement.resizeElement(getSortSelectWidth(size));
|
||||||
that.size(1, size, function() {
|
that.size(1, size, function() {
|
||||||
// strangely, the animation may still not be fully
|
// strangely, the animation may still not be fully
|
||||||
// finished, causing the list size to be off by one
|
// finished, causing the list size to be off by one
|
||||||
|
@ -247,6 +249,10 @@ pandora.ui.navigationView = function(type, videoRatio) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getSortSelectWidth(width) {
|
||||||
|
return Math.min(144, width - 32 + Ox.UI.SCROLLBAR_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
function updateStatusbar(items) {
|
function updateStatusbar(items) {
|
||||||
$status.html(Ox.toTitleCase(Ox.formatCount(items, 'clip')));
|
$status.html(Ox.toTitleCase(Ox.formatCount(items, 'clip')));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue