aspectratio might not be set

This commit is contained in:
j 2012-05-30 17:35:25 +02:00
parent 04a5628268
commit 4d89b8066b

View file

@ -685,8 +685,12 @@ pandora.ui.infoView = function(data) {
return image.selected;
})[0];
$list = Ox.IconList({
defaultRatio: ui.icons == 'posters' ? 5/8 : data.stream.aspectratio,
fixedRatio: ui.icons == 'posters' ? false : data.stream.aspectratio,
defaultRatio: ui.icons == 'posters' && data.stream.aspectratio
? 5/8
: data.stream.aspectratio,
fixedRatio: ui.icons == 'posters' && data.stream.aspectratio
? false
: data.stream.aspectratio,
item: function(data, sort, size) {
var ratio = data.width / data.height;
size = size || 128;