From 842e8de06507f738cd67aca528ac31ba98c78269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20Ko=CC=88cher?= Date: Sat, 28 Apr 2012 09:38:31 +0200 Subject: [PATCH] #160: Wrong scaling of projector live view in IE8/Konqueror IE8 has a scaling bug - check the browser version and resize the iframe 4x bigger if needed.. --- openslides/projector/static/styles/projector-control.css | 1 - openslides/projector/templates/projector/control.html | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/openslides/projector/static/styles/projector-control.css b/openslides/projector/static/styles/projector-control.css index 78d5223eb..7e213b8c1 100644 --- a/openslides/projector/static/styles/projector-control.css +++ b/openslides/projector/static/styles/projector-control.css @@ -86,7 +86,6 @@ /* iframe */ #iframe { - -ms-zoom: 0.25; -moz-transform-origin: 0 0; -webkit-transform-origin: 0 0; -o-transform-origin: 0 0; diff --git a/openslides/projector/templates/projector/control.html b/openslides/projector/templates/projector/control.html index 99978665a..a19484615 100644 --- a/openslides/projector/templates/projector/control.html +++ b/openslides/projector/templates/projector/control.html @@ -53,6 +53,12 @@ //$( ".column" ).disableSelection(); $( "document" ).ready(function(){ if ($.browser.msie) { + if ($.browser.version >= 8.0 && $.browser.version < 9.0) + { + /* scaling bug in IE8.. iframe has to be 4 times bigger */ + $( "#iframe" ).css('width', 1024 * 4); + $( "#iframe" ).css('height', 768 * 4); + } $( "#iframe" ).css('zoom', '0.25'); }