From 156c2a71d8e2791d2b27fbd11275b7fe8a078068 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 31 Mar 2009 19:30:27 +0000 Subject: サイズ算出法修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@31757 d0d07461-0603-4401-acd4-de1884942a52 --- auto-focus-frame.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'auto-focus-frame.js') diff --git a/auto-focus-frame.js b/auto-focus-frame.js index 3d49ff8..9cf0bbb 100644 --- a/auto-focus-frame.js +++ b/auto-focus-frame.js @@ -38,7 +38,7 @@ let PLUGIN_INFO = Auto focus frame Automatically focus to largest frame. 最も大きなフレームに自動的にフォーカスする。 - 1.0.1 + 1.0.2 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -71,8 +71,7 @@ let PLUGIN_INFO = try { if (frame.scrollMaxX <= 0 && frame.scrollMaxY <= 0) continue; - let doc = frame.document; - let size = doc.width * doc.height; + let size = frame.innerWidth * frame.innerHeight; if (maxSize < size) { maxSize = size; maxFrame = frame; -- cgit v1.2.3