Merge pull request #435 from zoff-music/feature/better-embed-player

Feature/better embed player
This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-24 12:46:15 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ function resizeFunction() {
temp_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71)+1;
List.element_height = (Helper.computedStyle("#wrapper", "height") / temp_fit)-5.3;
}
if(List.element_height < 55.2 && !client){
if(List.element_height < 55.2 && !client && !embed){
temp_fit = temp_fit - 1;
List.element_height = 55.2;
temp_fit = Math.round((window.innerHeight - Helper.computedStyle(".tabs", "height") - Helper.computedStyle("header", "height") - 64 - 40) / 71);

View File

@@ -167,7 +167,7 @@ var List = {
List.can_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71)+1;
List.element_height = (Helper.computedStyle("#wrapper", "height") / List.can_fit)-5.3;
}
if(List.element_height < 55.2 && !client){
if(List.element_height < 55.2 && !client && !embed){
List.can_fit = List.can_fit - 1;
List.element_height = 55.2;
List.can_fit = Math.round((window.innerHeight - Helper.computedStyle(".tabs", "height") - Helper.computedStyle("header", "height") - 64 - 40) / 71);