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:
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -873,7 +873,11 @@ $(document).on("click", "#closeSettings", function(e)
|
|||||||
|
|
||||||
$(window).resize(function(){
|
$(window).resize(function(){
|
||||||
if(chan){
|
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.element_height = (($("#wrapper").height()) / List.can_fit)-6;
|
||||||
$(".list-song").css("height", List.element_height + "px");
|
$(".list-song").css("height", List.element_height + "px");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user