raylib: cache wrap text (#36258)

* cache html height

* clean up

* todo
This commit is contained in:
Shane Smiskol
2025-10-03 20:52:50 -07:00
committed by GitHub
parent 89d350a791
commit 12b3d0e08d
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -155,6 +155,7 @@ class HtmlRenderer(Widget):
self.elements.append(element)
def _render(self, rect: rl.Rectangle):
# TODO: speed up by removing duplicate calculations across renders
current_y = rect.y
padding = 20
content_width = rect.width - (padding * 2)