Updated some sizing

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-20 15:29:34 +01:00
parent 6d52617fab
commit fe1fe6f4a8
5 changed files with 18 additions and 5 deletions

View File

@@ -858,7 +858,14 @@ $(document).on("click", "#closeSettings", function(e)
});
$(window).resize(function(){
List.can_fit = Math.round(($("#wrapper").height()) / 71)+1;
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
var i = 2;
while(List.element_height < 50 || i > 10){
List.can_fit = Math.round(($("#wrapper").height()) / 71)+i;
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
i = i + 1;
}
$(".list-song").css("height", List.element_height + "px");
})