avoid info panel reflow

This commit is contained in:
rlx 2016-01-18 11:23:59 +05:30
parent 097708fedd
commit 0a382be9bc
1 changed files with 13 additions and 1 deletions

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')