aspectratio might not be set
This commit is contained in:
parent
04a5628268
commit
4d89b8066b
1 changed files with 6 additions and 2 deletions
|
@ -685,8 +685,12 @@ pandora.ui.infoView = function(data) {
|
||||||
return image.selected;
|
return image.selected;
|
||||||
})[0];
|
})[0];
|
||||||
$list = Ox.IconList({
|
$list = Ox.IconList({
|
||||||
defaultRatio: ui.icons == 'posters' ? 5/8 : data.stream.aspectratio,
|
defaultRatio: ui.icons == 'posters' && data.stream.aspectratio
|
||||||
fixedRatio: ui.icons == 'posters' ? false : data.stream.aspectratio,
|
? 5/8
|
||||||
|
: data.stream.aspectratio,
|
||||||
|
fixedRatio: ui.icons == 'posters' && data.stream.aspectratio
|
||||||
|
? false
|
||||||
|
: data.stream.aspectratio,
|
||||||
item: function(data, sort, size) {
|
item: function(data, sort, size) {
|
||||||
var ratio = data.width / data.height;
|
var ratio = data.width / data.height;
|
||||||
size = size || 128;
|
size = size || 128;
|
||||||
|
|
Loading…
Reference in a new issue