LSP: preview height.. force

This commit is contained in:
cat 2016-06-14 14:56:54 +02:00 committed by Thulinma
parent 680f9acfa8
commit 589dcd21ea
4 changed files with 15 additions and 11 deletions

View file

@ -3026,7 +3026,7 @@ var UI = {
};
script.onload = function(){
if (typeof mistvideo[other].error != 'undefined') {
$c.html(mistvideo[other].error+'<br>').append(
$c.height('5em').html(mistvideo[other].error+'<br>').append(
$('<button>').text('Try again').click(function(){
loadVideo();
})
@ -3049,6 +3049,7 @@ var UI = {
mist.stored.set('autoplay',($(this).getval() ? 1 : 0));
}
}]);
$c.height(Math.min(vid.height,$c.height())); //set height to height of video element
$url.find('.help_container').remove();
$video.append($url);