From: Steinar H. Gunderson Date: Sat, 4 Jul 2009 13:16:24 +0000 (+0200) Subject: Workaround for Chrome in fullscreen mode. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=783ddb3759fc8aa9f18bdc054938dcdc0ecdd587 Workaround for Chrome in fullscreen mode. --- diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index 2a43c07..6536ed7 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -134,6 +134,9 @@ function display_image(width, height, evt, filename, element_id) var url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "/nobox/" + filename; var main = document.getElementById("iehack"); var img = replace_image_element(url, element_id, main); + img.style.position = "absolute"; + img.style.left = "0px"; + img.style.top = "0px"; if (global_infobox != 'nobox/') { var url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "/box/" + filename;