cvs: phpweb /include shared.inc

From: Date: Tue, 12 Dec 2000 02:36:17 +0000
Subject: cvs: phpweb /include shared.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-3072@lists.php.net to get a copy of this message
jimw Mon Dec 11 18:36:17 2000 EDT Modified files: /phpweb/include shared.inc Log: hmm, doesn't appear to be a standard DOM way to get the width of the window. odd. Index: phpweb/include/shared.inc diff -u phpweb/include/shared.inc:1.115 phpweb/include/shared.inc:1.116 --- phpweb/include/shared.inc:1.115 Mon Dec 11 18:19:35 2000 +++ phpweb/include/shared.inc Mon Dec 11 18:36:17 2000 @@ -392,7 +392,7 @@ document.layers['searchKick'].left = screenWidth-350; document.layers['searchKick'].top = 36; } else if (DOM) { - screenWidth = document.body.clientWidth + 18; + screenWidth = (document.body.clientWidth ? document.body.clientWidth : window.innerWidth) + 18; <? if ($FRAMEMODE!="manual"): ?> document.getElementById('mirrorsKick').style.pixelLeft = 140; document.getElementById('mirrorsKick').style.pixelTop = 215;

« previous php.mirrors (#3072) next »