Fixed IE9/IE10 control panel scaling bug

This commit is contained in:
Jeff Parsons 2015-02-03 16:56:46 -08:00 • committed by jeffpar
commit 5477c1ae3e
6 changed files with 22 additions and 10 deletions

View file

@ -5280,12 +5280,12 @@ Video.init = function()
*/
eCanvas.style.height = "auto";
if (web.getUserAgent().indexOf("MSIE") >= 0) {
eCanvas.style.height = (((eVideo.clientWidth * parmsVideo['screenHeight']) / parmsVideo['screenWidth']) | 0) + "px";
eVideo.onresize = function(eParent, eChild, cx, cy) {
return function onResizeVideo() {
eChild.style.height = (((eParent.clientWidth * cy) / cx) | 0) + "px";
};
}(eVideo, eCanvas, parmsVideo['screenWidth'], parmsVideo['screenHeight']); // jshint ignore:line
}(eVideo, eCanvas, parmsVideo['screenWidth'], parmsVideo['screenHeight']);
eVideo.onresize();
}
eVideo.appendChild(eCanvas);