Fix video height inconsistency on fluid layout

This commit is contained in:
calzoneman 2013-05-13 16:15:12 -04:00
parent 4620fb2d56
commit 59fa9aa029

View file

@ -558,7 +558,7 @@ function fluidLayout() {
$(this).removeClass("container").addClass("container-fluid");
});
VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", "");
var VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
$("#messagebuffer").css("height", (VHEIGHT - 31) + "px");
$("#userlist").css("height", (VHEIGHT - 31) + "px");
$("#ytapiplayer").attr("width", VWIDTH);