Skip to content

Commit

Permalink
Use regenerateLayout() in TextraLabel again.
Browse files Browse the repository at this point in the history
It seems to work fine now?
  • Loading branch information
tommyettinger committed Apr 17, 2022
1 parent b107725 commit 9087144
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ public void layout() {
float width = getWidth();
if (wrap && layout.getTargetWidth() != width) {
layout.setTargetWidth(width);
// font.regenerateLayout(layout);
// TODO: I cannot figure out how markup() works, but regenerateLayout() doesn't...
font.markup(storedText, layout.clear());
font.regenerateLayout(layout);
// This was used earlier, but regenerateLayout() seems to work better in its place.
// font.markup(storedText, layout.clear());
invalidateHierarchy();
}
}
Expand Down

0 comments on commit 9087144

Please sign in to comment.