From 588a0e669368cfed7b70e2a307df96e4c3a1958b Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 24 Nov 2007 09:06:27 +0000 Subject: [PATCH] --- ase/test/awk/AseAwkApplet.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ase/test/awk/AseAwkApplet.html b/ase/test/awk/AseAwkApplet.html index 3a2f51af..f103336e 100644 --- a/ase/test/awk/AseAwkApplet.html +++ b/ase/test/awk/AseAwkApplet.html @@ -11,15 +11,17 @@ h2 { font-size: 24px; font-style: italic; } function resize() { - if (navigator.appName.indexOf("Microsoft") != -1) + var width, height; + + if (navigator.appName.indexOf("Microsoft") == -1) { - width = document.body.clientWidth; - height = document.body.clientHeight; + width = window.innerWidth; + height = window.innerHeight; } else { - width = window.innerWidth - 20; - height = window.innerHeight - 20; + width = document.body.clientWidth; + height = document.body.clientHeight; } document.AseAwkApplet.width = width - 250;