avoid info panel reflow
This commit is contained in:
parent
097708fedd
commit
0a382be9bc
1 changed files with 13 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue