avoid info panel reflow

This commit is contained in:
rlx 2016-01-18 11:23:59 +05:30
parent 097708fedd
commit 0a382be9bc

View file

@ -44,7 +44,19 @@ oml.ui.info = function() {
src: '/' + id + '/' + ui.icons + '128.jpg?'
+ data.modified
})
.css({margin: '16px 0 8px 0'})
.css({
margin: '16px 0 8px 0',
height: '128px'
})
.bind({
load: function() {
if (data.coverRatio > 1) {
$(this).css({
height: (128 / data.coverRatio) + 'px'
});
}
}
})
.appendTo(that);
$('<div>')
.addClass('OxSelectable')