Commit 67750b5
committed
js: fix subtitles disappear when resizing
1. Missing `px` in offset comparison - deferred resizing resets
the canvas by writing the same values to `width` and `height`.
[turuslan <turuslan.devbox@gmail.com>] found this bug.
2. Since RenderAhead resizes the canvas according to the
rendered frame, the native properties will be overwritten, and
we need additional properties for comparison.1 parent 0df71b0 commit 67750b5
1 file changed
Lines changed: 14 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
752 | 757 | | |
753 | 758 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
| 759 | + | |
| 760 | + | |
765 | 761 | | |
766 | 762 | | |
767 | 763 | | |
| |||
0 commit comments