diff options
author | anekos | 2011-04-11 20:37:40 +0900 |
---|---|---|
committer | anekos | 2011-04-11 20:37:40 +0900 |
commit | 20ccd608a2d677ee4302ee589b9a95c252173ff3 (patch) | |
tree | 72aa1604a69a69715ec43d1b7d0fc9dbe7ebe5f4 /maine_coon.js | |
parent | ab2154aaa785975780d274799971d60f42672a88 (diff) | |
download | vimperator-plugins-20ccd608a2d677ee4302ee589b9a95c252173ff3.tar.bz2 |
Vimperator 3.0 でとりあえずうごくように
Diffstat (limited to 'maine_coon.js')
-rw-r--r-- | maine_coon.js | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/maine_coon.js b/maine_coon.js index 96364e2..4ce99e1 100644 --- a/maine_coon.js +++ b/maine_coon.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2008-2010, anekos. +Copyright (c) 2008-2011, anekos. All rights reserved. Redistribution and use in source and binary forms, with or without modification, @@ -38,10 +38,9 @@ let PLUGIN_INFO = <name lang="ja">メインクーン</name> <description>Make the screen larger</description> <description lang="ja">なるべくでかい画面で使えるように</description> - <version>2.5.2</version> + <version>2.6.0</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> - <minVersion>2.3</minVersion> - <maxVersion>2.4</maxVersion> + <minVersion>3.0</minVersion> <updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/maine_coon.js</updateURL> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -181,6 +180,7 @@ let elemStyle = let U = libly.$U; let mainWindow = document.getElementById('main-window'); let messageBox = document.getElementById('liberator-message'); + let bottomBar = document.getElementById('liberator-bottombar'); function s2b (s, d) !!((!/^(\d+|false)$/i.test(s)|parseInt(s)|!!d*2)&1<<!s); @@ -387,14 +387,6 @@ let elemStyle = }); } - { - // for multiline input - let cmdline = document.getElementById("liberator-commandline"); - messageBox.inputField.__defineGetter__("scrollWidth", function() { - return cmdline.clientWidth; - }); - } - U.around(commandline, 'input', function (next, args) { let result = next(); inputting = true; @@ -402,13 +394,13 @@ let elemStyle = }); U.around(commandline, 'open', function (next, args) { - messageBox.collapsed = false; + bottomBar.collapsed = false; return next(); }); U.around(commandline, 'close', function (next, args) { if (autoHideCommandLine && !inputting) - messageBox.collapsed = true; + bottomBar.collapsed = true; return next(); }); |