From 5a4b18a1e71cf91cebbe46431cce1e86275b2b86 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 15 Feb 2014 12:43:10 -0600 Subject: [PATCH] A few fixes --- www/assets/js/player.js | 6 +++--- www/assets/js/util.js | 2 +- www/css/cytube.css | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/www/assets/js/player.js b/www/assets/js/player.js index b46d7fc5..d75f6e50 100644 --- a/www/assets/js/player.js +++ b/www/assets/js/player.js @@ -68,10 +68,10 @@ var YouTubePlayer = function (data) { self.load = function (data) { if(self.player && self.player.loadVideoById) { self.player.loadVideoById(data.id, data.currentTime); - if(VIDEOQUALITY) { - self.player.setPlaybackQuality(VIDEOQUALITY); + if (USEROPTS.default_quality) { + self.player.setPlaybackQuality(USEROPTS.default_quality); // What's that? Another stupid hack for the HTML5 player? - self.player.setPlaybackQuality(VIDEOQUALITY); + self.player.setPlaybackQuality(USEROPTS.default_quality); } self.videoId = data.id; self.videoLength = data.seconds; diff --git a/www/assets/js/util.js b/www/assets/js/util.js index 6adf1859..d3ec2aba 100644 --- a/www/assets/js/util.js +++ b/www/assets/js/util.js @@ -1482,7 +1482,7 @@ function resizeStuff() { return; } - var h = parseInt(VHEIGHT) - 33; + var h = parseInt(VHEIGHT) - $("#chatline").outerHeight() - 1; $("#messagebuffer").height(h); $("#userlist").height(h); } diff --git a/www/css/cytube.css b/www/css/cytube.css index 520fe377..0533a1aa 100644 --- a/www/css/cytube.css +++ b/www/css/cytube.css @@ -38,7 +38,7 @@ } #messagebuffer, #userlist { - height: 300px; + height: 329px; overflow-x: hidden; overflow-y: scroll; margin-bottom: 0;