mirror of https://github.com/calzoneman/sync.git
Fix #198
This commit is contained in:
parent
b43e485bb5
commit
a2036e4383
|
@ -339,12 +339,14 @@ $("#shuffleplaylist").click(function() {
|
||||||
|
|
||||||
/* layout stuff */
|
/* layout stuff */
|
||||||
$(window).resize(function() {
|
$(window).resize(function() {
|
||||||
VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", "");
|
VWIDTH = $("#queue").css("width").replace("px", "");
|
||||||
var VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
|
VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
|
||||||
$("#messagebuffer").css("height", (VHEIGHT - 31) + "px");
|
$("#messagebuffer").css("height", (VHEIGHT - 31) + "px");
|
||||||
$("#userlist").css("height", (VHEIGHT - 31) + "px");
|
$("#userlist").css("height", (VHEIGHT - 31) + "px");
|
||||||
|
if($("#ytapiplayer").length > 0) {
|
||||||
$("#ytapiplayer").attr("width", VWIDTH);
|
$("#ytapiplayer").attr("width", VWIDTH);
|
||||||
$("#ytapiplayer").attr("height", VHEIGHT);
|
$("#ytapiplayer").attr("height", VHEIGHT);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -574,7 +574,10 @@ function applyOpts() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(USEROPTS.hidevid) {
|
if(USEROPTS.hidevid) {
|
||||||
|
$("#qualitywrap").html("");
|
||||||
$("#videowrap").remove();
|
$("#videowrap").remove();
|
||||||
|
$("#chatwrap").removeClass("span5").addClass("span12");
|
||||||
|
$("#chatline").removeClass().addClass("span12");
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#chatbtn").remove();
|
$("#chatbtn").remove();
|
||||||
|
@ -1282,12 +1285,15 @@ function fluidLayout() {
|
||||||
$(".container").each(function() {
|
$(".container").each(function() {
|
||||||
$(this).removeClass("container").addClass("container-fluid");
|
$(this).removeClass("container").addClass("container-fluid");
|
||||||
});
|
});
|
||||||
VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", "");
|
// Video might not be there, but the playlist is
|
||||||
|
VWIDTH = $("#queue").css("width").replace("px", "");
|
||||||
VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
|
VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
|
||||||
$("#messagebuffer").css("height", (VHEIGHT - 31) + "px");
|
if($("#ytapiplayer").length > 0) {
|
||||||
$("#userlist").css("height", (VHEIGHT - 31) + "px");
|
|
||||||
$("#ytapiplayer").attr("width", VWIDTH);
|
$("#ytapiplayer").attr("width", VWIDTH);
|
||||||
$("#ytapiplayer").attr("height", VHEIGHT);
|
$("#ytapiplayer").attr("height", VHEIGHT);
|
||||||
|
}
|
||||||
|
$("#messagebuffer").css("height", (VHEIGHT - 31) + "px");
|
||||||
|
$("#userlist").css("height", (VHEIGHT - 31) + "px");
|
||||||
$("#chatline").removeClass().addClass("span12");
|
$("#chatline").removeClass().addClass("span12");
|
||||||
$("#channelsettingswrap3").css("margin-left", "0");
|
$("#channelsettingswrap3").css("margin-left", "0");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue