Layout - dirty label #4202
Unanswered
espruino-discuss2
asked this question in
Bangle.js
Replies: 1 comment
-
Posted at 2022-02-25 by pelrun Layout precalculates the size of the widget bounding boxes. If you do anything that changes the size of a widget you need to call layout.update() before layout.render(). Posted at 2022-02-25 by Alessandro I got it! Now it works like a charm, thank you! Posted at 2022-02-28 by @gfwilliams You can sometimes use Also sometimes just setting a background color with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2022-02-25 by Alessandro
I'm studying the tutorials and I have run into something unexpected.
This is the code taken from Layout tutorial. I only changed the
setLabel
text (One
→One11111
,Two
→Two22222
:After the second click the label gets dirty (both on emulator and physical device). What's wrong?
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions