https://linen.dev logo
Title
b

bulky-exabyte-6537

05/25/2023, 6:30 AM
(forewarning i'm not a webdev) i was looking for a quick n dirty way to show maths in my haxeui-html5 app. i am using the MathJax lib for it and basically just doing
haxe
function this_SHOWN(e) {
    #if js
    // rewrites the dom to replace special markup text with math symbols
    mathjax.MathJax.typeset(); 
    #end
}
but the sad part is that haxeui doesn't update the layout to the new size and i'm not sure how to tell it to.
invalidateComponent
doesn't work in this case.
xml
<button text="SADSADASDADSADS"/>
<label text="`sum_(i=1)^n i^3=((n(n+1))/2)^2`"/>
<button text="below"/>

https://cdn.discordapp.com/attachments/565569107701923852/1111179374939611197/image.png