diff options
author | anekos | 2009-03-31 19:30:27 +0000 |
---|---|---|
committer | anekos | 2009-03-31 19:30:27 +0000 |
commit | 156c2a71d8e2791d2b27fbd11275b7fe8a078068 (patch) | |
tree | 836298add2101ef543b896bf2b7133ef0c2af4fa /auto-focus-frame.js | |
parent | 81d5d2673828d72cc52cd2ae2039916ed7c708a4 (diff) | |
download | vimperator-plugins-156c2a71d8e2791d2b27fbd11275b7fe8a078068.tar.bz2 |
サイズ算出法修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@31757 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'auto-focus-frame.js')
-rw-r--r-- | auto-focus-frame.js | 5 |
1 files changed, 2 insertions, 3 deletions
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 = <name>Auto focus frame</name> <description>Automatically focus to largest frame.</description> <description lang="ja">最も大きなフレームに自動的にフォーカスする。</description> - <version>1.0.1</version> + <version>1.0.2</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -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; |