4:3 aspect fix
Forgot to commit this. That is what I get for working in 2 environments :)
This commit is contained in:
@@ -274,6 +274,8 @@
|
||||
|
||||
videoPlayer.fadeIn();
|
||||
|
||||
checkAspectRatio();
|
||||
|
||||
});
|
||||
|
||||
$(".mediaFlyoutContainer").on("click", "a", function (e) {
|
||||
@@ -318,6 +320,21 @@
|
||||
fullscreenExited = false;
|
||||
};
|
||||
|
||||
function checkAspectRatio() {
|
||||
// Resize player window if 4:3 aspect ratio
|
||||
var footer = $("#footer");
|
||||
|
||||
var videoElement = $("video", footer);
|
||||
|
||||
var w = $(videoElement).width();
|
||||
|
||||
var h = $(videoElement).height();
|
||||
|
||||
if (w / h < 1.7) {
|
||||
$("#videoPlayer", footer).addClass("aspect43");
|
||||
}
|
||||
}
|
||||
|
||||
function changeHandler(event) {
|
||||
|
||||
document.addEventListener(event, function () {
|
||||
|
||||
Reference in New Issue
Block a user