Skip to content

Commit

Permalink
Fix: [Client][Player/DocumentPiPManager] Chrome 131 以降、データ放送表示時に PiP …
Browse files Browse the repository at this point in the history
…ウインドウが真っ黒になる問題を修正

おそらくスタイルの解釈方法が変わったことが原因…?とにかく対処可能な問題でよかった
  • Loading branch information
tsukumijima committed Nov 23, 2024
1 parent 37c867b commit e413a64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/services/player/managers/DocumentPiPManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class DocumentPiPManager implements PlayerManager {
// Document Picture-in-Picture ウインドウに DOM 要素を移動
const watch_content = pip_window.document.createElement('div');
watch_content.classList.add('watch-content');
watch_content.style.height = '100vh'; // ここで 100vh を指定しないと、Chrome 131 以降データ放送表示時に高さが 0px になり PiP ウインドウが真っ黒になる
watch_content.append(this.watch_header_element);
watch_content.append(this.watch_player_element);
pip_window.document.body.append(watch_content);
Expand Down

0 comments on commit e413a64

Please sign in to comment.