mirror of https://github.com/calzoneman/sync.git
Handle #412
This commit is contained in:
parent
2f9b5ffe6a
commit
610fd5a7c3
|
@ -1657,15 +1657,16 @@ function handleVideoResize() {
|
||||||
var intv, ticks = 0;
|
var intv, ticks = 0;
|
||||||
var resize = function () {
|
var resize = function () {
|
||||||
if (++ticks > 10) clearInterval(intv);
|
if (++ticks > 10) clearInterval(intv);
|
||||||
if ($("#ytapiplayer").height() === 0) return;
|
if ($("#ytapiplayer").parent().height() === 0) return;
|
||||||
clearInterval(intv);
|
clearInterval(intv);
|
||||||
|
|
||||||
var height = $("#ytapiplayer").height() - $("#chatline").outerHeight() - 2;
|
var responsiveFrame = $("#ytapiplayer").parent();
|
||||||
|
var height = responsiveFrame.outerHeight() - $("#chatline").outerHeight() - 2;
|
||||||
$("#messagebuffer").height(height);
|
$("#messagebuffer").height(height);
|
||||||
$("#userlist").height(height);
|
$("#userlist").height(height);
|
||||||
|
|
||||||
$("#ytapiplayer").attr("height", VHEIGHT = $("#ytapiplayer").height());
|
$("#ytapiplayer").attr("height", VHEIGHT = responsiveFrame.outerHeight());
|
||||||
$("#ytapiplayer").attr("width", VWIDTH = $("#ytapiplayer").width());
|
$("#ytapiplayer").attr("width", VWIDTH = responsiveFrame.outerWidth());
|
||||||
};
|
};
|
||||||
|
|
||||||
if ($("#ytapiplayer").height() > 0) resize();
|
if ($("#ytapiplayer").height() > 0) resize();
|
||||||
|
|
Loading…
Reference in New Issue