Anyone knows why the `alignByBaseline` modifier i...
# compose-web
j
Anyone knows why the
alignByBaseline
modifier isn’t working in the web application? (Below is desktop.) Worth opening an issue?
e
You can find out if the Text actually included the alignment lines correctly by
Copy code
onGloballyPositioned { println("The alignment line is " + it.get(FirstBaseline)) }
My guess is that the values per layoutNode in both platforms are not matching
j
Thx for the hint. Interestingly on the web the alignment line is always 0.
d
Thanks for this question! If it is possible - better to create an issue with reproducoble sample on GitHub. Best way to reproduce bug in commonMain sourceSet so it is easier to compaer with Desktop JVM behavior. This sample should runs on Desktop and Web.