Removed loop

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-20 15:37:56 +01:00
parent fe1fe6f4a8
commit 3efc7109f5
5 changed files with 10 additions and 19 deletions

View File

@@ -1293,7 +1293,7 @@ nav ul li:hover, nav ul li.active {
}
.list-remove{
width: 27%;
width: 70px;
margin-top: -31px;
font-size: 12px;
height: 20px;
@@ -1306,11 +1306,12 @@ nav ul li:hover, nav ul li.active {
position: absolute;
text-align: right;
bottom: -67%;
left: 0%;
right: 0%;
height: 100%;
line-height: normal;
padding: 2px 12px;
color: white;
width: initial;
}
.result {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -79,12 +79,6 @@ var List = {
if(!Helper.mobilecheck()){
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;
}
} 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;

View File

@@ -858,15 +858,11 @@ $(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;
if(chan){
List.can_fit = Math.round(($("#wrapper").height()) / 71)+1;
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
i = i + 1;
$(".list-song").css("height", List.element_height + "px");
}
$(".list-song").css("height", List.element_height + "px");
})
$(document).on( "click", ".result-object", function(e){