Closed Bug 1536169 Opened 6 years ago Closed 6 years ago

The Picture-in-Picture window has too much whitespace on Windows

Categories

(Toolkit :: Video/Audio Controls, enhancement, P1)

Unspecified
Windows
enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(3 files)

This is because we're using the width and height window features to calculate the dimensions, and not outerWidth and outerHeight (for some reason, the window seems to have some minimum chrome height that it's adding on top of the height that's being supplied).

Setting the outerWidth and outerHeight values fixes this.

There also seem to be cases where there's a pixel too much whitespace because we use Math.floor after applying the max-size clamping with aspect ratio. Using Math.round instead appears to fix this.

Summary: The Picture-in-Picture window has too much vertical whitespace on Windows → The Picture-in-Picture window has too much whitespace on Windows
Attached image Before patch (deleted) —
Attached image After patch (deleted) —
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/93efe527cad2 Get rid of extra whitespace around Picture-in-Picture player. r=JSON_voorhees
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: