I suspect the issue is that since layout.time.label is initially empty, and you don't call layout.update after setting it, the layout code thinks it still has zero width and thus tries to clear an area with zero width.
Try either setting the label to a placeholder value of "00:00" when you construct the layout or call layout.update() before each render.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I suspect the issue is that since
layout.time.label
is initially empty, and you don't calllayout.update
after setting it, the layout code thinks it still has zero width and thus tries to clear an area with zero width.Try either setting the label to a placeholder value of
"00:00"
when you construct the layout or calllayout.update()
before each render.