Fixed embedded player a bit

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-30 17:30:22 +01:00
parent 3cd0018a2d
commit 3e68196cf1
4 changed files with 17 additions and 8 deletions

View File

@@ -79,10 +79,14 @@ var List = {
populate_list: function(msg)
{
if(!Helper.mobilecheck()){
if(!Helper.mobilecheck() && !embed){
List.can_fit = Math.round(($("#wrapper").height()) / 71)+1;
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
} else {
} else if(embed) {
List.can_fit = Math.round(($("#wrapper").height()) / 91) + 1;
List.element_height = (($("#wrapper").height()) / List.can_fit)-4;
console.log("anal")
}else {
List.can_fit = Math.round(($(window).height() - $(".tabs").height() - $("header").height() -66) / 71)+1;
List.element_height = (($(window).height() - $(".tabs").height() - $("header").height() -66) / List.can_fit)-6;
}