Am I just being dumb or am I missing how to vertic...
# compose-desktop
g
Am I just being dumb or am I missing how to vertically align a
Text
? I did a manual height and .wrapContentHeight and it's still offset down. Does it just not work on desktop?
s
Is the
Text
vertically aligned in its container? If the
Text
is in a
Row
, you probably want to set
verticalAlignment
of the
Row
.
i
wrapContentHeight
should work, however the exact glyph position is highly depends on font data. Default fonts are different on different platforms, so if you want to have the same look you need to load a font from your resources
image.png
g
It's in a vertically centered Row next to an Icon, thats how I can tell its not properly vertically aligning. I'll take a look at the font though. thanks
s
Are you setting the vertical alignment on the row?
g
Of course, yes