Commit 581b867
Add option to limit canvas size
JSO struggles with complex subtitles on HiDPI canvasses,
so limiting the size can make sense if such subtitles are expected.
This was ported from jellyfin's fork and jellyfin-web uses this on at
least some devices. In the original implementation prescaleHeightLimit
would override hardHeightLimit if it was larger. This undocumentend
behaviour was dropped here as it seemed unintuitive and unhelpful.
[Vasily <[email protected]>]
Original implementation together with prescaling in
jellyfin@345d701
jellyfin@4c5f018
[Dmitry Lyzo]
Rebased for upstream; seperated from the prescaling;
removed default height limit and added docs
[Oneric]
Removed prescaleHeightLimit overriding hardHeightLimit if larger;
split hard height limit from prescaling.
Co-Authored-By: Dmitry Lyzo <[email protected]>1 parent 2f5baff commit 581b867
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
| |||
0 commit comments