Closed HashidaTKS closed 8 months ago
ポップアップウィンドウの表示時、指定されたポップアップウィンドウのサイズが大きいと、(タスクバーを除いた)スクリーンサイズよりも大きなサイズで表示されてしまう。
サンプル:
popup.zip
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script> function openPopup() { window.open( "https://www.google.co.jp/", "popup", `left=0, top=0, width=${screen.availWidth}, height=${screen.availHeight}`); } </script> </head> <body> <button onclick="openPopup()">open popup</button> </body> </html>
上記のサンプルHTML(popup.html)を保存し、open popupボタンをクリックするとGoogleが開く。 サンプルではscreen.availHeightとスクリーンの高さ自体を指定しているが、スクリーンサイズよりも大きなポップアップウィンドウが表示され、Google画面の下部がタスクバーに被って見切れてしまう。
popup.html
open popup
screen.availHeight
left=0, top=0, width=${screen.availWidth}, height=${screen.availHeight}`);
screen.availWidth
200
Which issue(s) this PR fixes:
What this PR does / why we need it:
ポップアップウィンドウの表示時、指定されたポップアップウィンドウのサイズが大きいと、(タスクバーを除いた)スクリーンサイズよりも大きなサイズで表示されてしまう。
サンプル:
popup.zip
上記のサンプルHTML(
popup.html
)を保存し、open popup
ボタンをクリックするとGoogleが開く。 サンプルではscreen.availHeight
とスクリーンの高さ自体を指定しているが、スクリーンサイズよりも大きなポップアップウィンドウが表示され、Google画面の下部がタスクバーに被って見切れてしまう。How to verify the fixed issue:
The steps to verify:
open popup
をクリックするleft=0, top=0, width=${screen.availWidth}, height=${screen.availHeight}`);
の部分のscreen.availWidth
とscreen.availHeight
を200
/200
など任意のある程度小さな値に変更し、open popup
をクリックするExpected result: