Skip to content

Commit

Permalink
editor: minor text fixes
Browse files Browse the repository at this point in the history
There are two bugs this PR fixes:
1. The text style of the ellipsis should be the same as the style of the text that's truncated. This is fixed by passing the styleId to the ellipsis text run.
2. When the text is unwrapped, ellipsis should only happen at the last few characters, instead of the whole line. This is fixed by setting x back to 0.0 after the 'do we need ellipsis' check.

Diffs=
4b7454518f editor: minor text fixes (#8787)
  • Loading branch information
susan101566 committed Dec 20, 2024
1 parent 7e07b9f commit fce3945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
de2a5cbf93851ab109846403b5a17701f72e507d
4b7454518f23f181a02c8a21c95bc0f6b10fb14a
2 changes: 1 addition & 1 deletion wasm/submodules/rive-runtime

0 comments on commit fce3945

Please sign in to comment.