diff options
author | anekos | 2009-02-04 13:03:43 +0000 |
---|---|---|
committer | anekos | 2009-02-04 13:03:43 +0000 |
commit | 712e7a3c26add645941094d1941598f84bf2236c (patch) | |
tree | 2c8a4c5b3f573afa50b70dae8b51de462765eca2 | |
parent | 5e8c55e3125d3df6ec525bf46634848f1de1be8b (diff) | |
download | vimperator-plugins-712e7a3c26add645941094d1941598f84bf2236c.tar.bz2 |
ニコニコ動画でフルスクリーン復帰後にプレイヤーサイズが完全に治っていなかったのを修正。
(右側で右クリックすると Flash のコンテクストメニューがでる)
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29537 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | stella.js | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -39,7 +39,7 @@ let PLUGIN_INFO = <name lang="ja">すてら</name> <description>Show video informations on the status line.</description> <description lang="ja">ステータスラインに動画の再生時間などを表示する。</description> - <version>0.19.2</version> + <version>0.19.3</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> @@ -877,11 +877,14 @@ Thanks: function turnOn () { // toggleMaximizePlayer でサイズが変わってしまうのであらかじめ保存しておく… - let oldHeight = content.getComputedStyle(player, '').height; + let oldStyle = content.getComputedStyle(player, ''); + let oldHeight = oldStyle.height; + let oldWidth = oldStyle.width; win.toggleMaximizePlayer(); turnOnMain(); // 保存したもので修正する for toggleMaximizePlayer問題 player.style.__stella_backup.height = oldHeight; + player.style.__stella_backup.width = oldWidth; win.onresize = fixFullscreen; } @@ -1527,7 +1530,11 @@ Thanks: onIconDblClick: function () this.player.toggle('fullscreen'), - onLargeClick: function () this.player.toggle('large'), + onLargeClick: function () { + if (this.player.fullscreen) + this.player.fullscreen = false; + this.player.toggle('large'); + }, onLocationChange: function () { if (this.__valid !== this.isValid) { |