fixed some issues with switching channels and host-mode enabling

This commit is contained in:
Kasper Rynning-Tønnesen
2018-07-01 22:26:29 +02:00
parent 42efd8cc8e
commit 470a31d092
4 changed files with 20 additions and 12 deletions

View File

@@ -153,6 +153,7 @@ var List = {
},
populate_list: function(msg, no_reset) {
if(document.querySelector("#wrapper") == null) return;
// This math is fucked and I don't know how it works. Should be fixed sometime
if(!Helper.mobilecheck() && !embed && !client){
List.can_fit = Math.round(Helper.computedStyle("#wrapper", "height") / 71);