]> git.sesse.net Git - pr0n/commitdiff
Workaround for Chrome in fullscreen mode.
authorSteinar H. Gunderson <sesse@debian.org>
Sat, 4 Jul 2009 13:16:24 +0000 (15:16 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Sat, 4 Jul 2009 13:16:24 +0000 (15:16 +0200)
files/pr0n-fullscreen.js

index 2a43c07ee0d2332922e776e08a0aa1c6dd0eb7d8..6536ed75da526e7c216e4c42379f0ce9f0d2608b 100644 (file)
@@ -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);
        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;
 
        if (global_infobox != 'nobox/') {
                var url = "http://" + global_vhost + "/" + evt + "/" + width + "x" + height + "/box/" + filename;