From 4d89b8066bfb28fe22e98d66311fe9ee5e23dcd5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 30 May 2012 17:35:25 +0200 Subject: [PATCH] aspectratio might not be set --- static/js/pandora/infoView.0xdb.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 9b5a0cddb..dac99ec37 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -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;