Just Enough Items (JEI)

Just Enough Items (JEI)

369M Downloads

Text wrapping in TooltipRenderer resets style.

The7seVen opened this issue ยท 7 comments

commented

In TooltipRenderer#drawHoveringText, when wrapping text lines, style of the component is set to Style.EMPTY, which is not nice.

commented

Thanks for the report!
This code is based on the vanilla text wrapping code and seems to be working fine in JEI for 1.18, can you provide some screenshots?
2021-12-25_11 33 39

commented

Also I just noticed this, and that's after disabling my code:
vanilla_name_bug

commented

I have no clue what's happening, my nbt-based names are generated in getName()
Note: Jei - 1.17.1-8.3.0.45 , rune labels are images added via gatherComponentsEvent
rune_names_bug

commented

OK. This is happening only in dev environment, so I guess it's all fine? Weird behavior.

commented

Hmm weird. Maybe this was something broken in older versions of JEI and I somehow fixed it recently?

commented

This has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

commented

This has been automatically closed because it has not had recent activity. Please feel free to update or reopen it.