mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use 16:9 instead of 1.78:1 to derive width of screen
This commit is contained in:
parent
a2f337b8c3
commit
def9da2f0d
1 changed files with 1 additions and 3 deletions
|
@ -118,9 +118,7 @@ define([], function () {
|
||||||
var height = window.innerHeight;
|
var height = window.innerHeight;
|
||||||
|
|
||||||
if (height > width) {
|
if (height > width) {
|
||||||
/* If we're in portrait, compute the proper width for this height,
|
width = height * (16.0 / 9.0);
|
||||||
taking 16:9 as the most common ratio */
|
|
||||||
width = height * 1.78;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var closest = standardWidths.sort(function (a, b) {
|
var closest = standardWidths.sort(function (a, b) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue