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.
@NebbishHacker Thanks! It works now.
© Espruino, powered by microcosm.
Report a problem