SHA2017-badge / micropython-esp32

MicroPython ported to the SHA2017 badge
https://micropython.org/
MIT License
12 stars 16 forks source link

add justifyTop when drawing text in an ugfx list item. #222

Closed basvs closed 7 years ago

DigitalBrains1 commented 7 years ago

After looking at the ugfx source, it's clear that this is intended behaviour indeed, and the documentation I consulted is outdated.

You could also use justifyLeft | justifyTop | justifyNoWordWrap or even just justifyLeft | justifyNoWordWrap, which would save the computation of the word wrapping when rendering, since the word wrapping doesn't serve a purpose anyway.

(Vertically centering a text that is one line high in a box that is one line high is a no-op).