From 712e7a3c26add645941094d1941598f84bf2236c Mon Sep 17 00:00:00 2001
From: anekos
Date: Wed, 4 Feb 2009 13:03:43 +0000
Subject:
ニコニコ動画でフルスクリーン復帰後にプレイヤーサイズが完全に治っていなかったのを修正。
(右側で右クリックすると Flash のコンテクストメニューがでる)
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29537 d0d07461-0603-4401-acd4-de1884942a52
---
stella.js | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
(limited to 'stella.js')
diff --git a/stella.js b/stella.js
index 19599e2..d74909d 100644
--- a/stella.js
+++ b/stella.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
すてら
Show video informations on the status line.
ステータスラインに動画の再生時間などを表示する。
- 0.19.2
+ 0.19.3
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -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) {
--
cgit v1.2.3