forked from 0x2620/pandora
minor changes
This commit is contained in:
parent
51310ab89c
commit
a5467b4095
1 changed files with 3 additions and 3 deletions
|
@ -157,6 +157,7 @@ pandora.ui.list = function(view) { // fixme: remove view argument
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (view == 'map') {
|
} else if (view == 'map') {
|
||||||
|
var fixedRatio = 16/9;
|
||||||
that = Ox.SplitPanel({
|
that = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
{
|
{
|
||||||
|
@ -196,12 +197,11 @@ pandora.ui.list = function(view) { // fixme: remove view argument
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
element: pandora.$ui.clips = Ox.IconList({
|
element: pandora.$ui.clips = Ox.IconList({
|
||||||
fixedRatio: 4/3,
|
fixedRatio: fixedRatio,
|
||||||
item: function(data, sort, size) {
|
item: function(data, sort, size) {
|
||||||
Ox.print('RATIO', data.aspectRatio);
|
Ox.print('RATIO', data.aspectRatio);
|
||||||
size = size || 128;
|
size = size || 128;
|
||||||
var fixedRatio = 4/3,
|
var width = data.aspectRatio < fixedRatio ? size : size * data.aspectRatio / fixedRatio,
|
||||||
width = data.aspectRatio < fixedRatio ? size : size * data.aspectRatio / fixedRatio,
|
|
||||||
height = width / data.aspectRatio,
|
height = width / data.aspectRatio,
|
||||||
url = '/' + data.item + '/' + width + '/' + data['in'] + '.jpg';
|
url = '/' + data.item + '/' + width + '/' + data['in'] + '.jpg';
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue