forked from 0x2620/pandora
use posterRatio
This commit is contained in:
parent
2140a55cbf
commit
c25099920c
5 changed files with 15 additions and 15 deletions
|
|
@ -43,7 +43,7 @@ pandora.ui.browser = function() {
|
|||
id: 'list',
|
||||
item: function(data, sort, size) {
|
||||
var icons = pandora.user.ui.icons,
|
||||
ratio = icons == 'posters' ? data.poster.width / data.poster.height : 1;
|
||||
ratio = icons == 'posters' ? data.posterRatio : 1;
|
||||
size = size || 64;
|
||||
return {
|
||||
height: ratio <= 1 ? size : size / ratio,
|
||||
|
|
@ -61,7 +61,7 @@ pandora.ui.browser = function() {
|
|||
query: pandora.Query.toObject()
|
||||
}), callback);
|
||||
},
|
||||
keys: ['director', 'id', 'poster', 'title', 'year'],
|
||||
keys: ['director', 'id', 'posterRatio', 'title', 'year'],
|
||||
max: 1,
|
||||
min: 1,
|
||||
orientation: 'horizontal',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue