Skip to content

Commit

Permalink
fix: Fix horizontal alignment of WebVTT in UITextDisplayer (#7169)
Browse files Browse the repository at this point in the history
Fixes #7116
  • Loading branch information
avelad authored and joeyparrish committed Aug 20, 2024
1 parent b5932ab commit 9c2c953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/text/ui_text_displayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ shaka.text.UITextDisplayer = class {
if (cue.position !== null) {
style.position = 'absolute';
if (cue.writingMode == Cue.writingMode.HORIZONTAL_TOP_TO_BOTTOM) {
style.right = cue.position + '%';
style.right = (100 - cue.position) + '%';
style.width = 'auto';
} else {
style.bottom = cue.position + '%';
Expand Down

0 comments on commit 9c2c953

Please sign in to comment.