mirror of https://github.com/calzoneman/sync.git
Fix video height inconsistency on fluid layout
This commit is contained in:
parent
4620fb2d56
commit
59fa9aa029
|
@ -558,7 +558,7 @@ function fluidLayout() {
|
||||||
$(this).removeClass("container").addClass("container-fluid");
|
$(this).removeClass("container").addClass("container-fluid");
|
||||||
});
|
});
|
||||||
VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", "");
|
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");
|
$("#messagebuffer").css("height", (VHEIGHT - 31) + "px");
|
||||||
$("#userlist").css("height", (VHEIGHT - 31) + "px");
|
$("#userlist").css("height", (VHEIGHT - 31) + "px");
|
||||||
$("#ytapiplayer").attr("width", VWIDTH);
|
$("#ytapiplayer").attr("width", VWIDTH);
|
||||||
|
|
Loading…
Reference in New Issue