mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
Finish off PiP
This commit is contained in:
parent
aac2156499
commit
55a53a2576
14 changed files with 293 additions and 21 deletions
|
|
@ -72,7 +72,7 @@ this.PictureInPicture = {
|
|||
}
|
||||
let screen = browser.ownerGlobal.screen;
|
||||
let width = Math.min(480, screen.availWidth);
|
||||
let height = Math.min(Math.round(width * data.height / data.width) + 48,
|
||||
let height = Math.min(Math.round(width * data.height / data.width),
|
||||
Math.round(screen.availHeight * 0.8));
|
||||
this.window = browser.ownerGlobal.openDialog(
|
||||
"chrome://browser/content/pictureInPicture.xul", "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue