mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Resizing now changes to first page if there are too many elements
This commit is contained in:
@@ -873,7 +873,11 @@ $(document).on("click", "#closeSettings", function(e)
|
||||
|
||||
$(window).resize(function(){
|
||||
if(chan){
|
||||
List.can_fit = Math.round(($("#wrapper").height()) / 71)+1;
|
||||
var temp_fit = Math.round(($("#wrapper").height()) / 71)+1;
|
||||
if(temp_fit > List.can_fit || temp_fit < List.can_fit){
|
||||
List.dynamicContentPage(-10);
|
||||
}
|
||||
List.can_fit = temp_fit;
|
||||
List.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
||||
$(".list-song").css("height", List.element_height + "px");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user