timeline-container didn't react to display:none/block

Hi guys.

After instanciating a cesium viewer object, I hide timeline container by viewer.timeline.container.style.display = ‘none’

Inside my web page, I have a button to trigger when to display/hide it again. I have uploaded these images below to show you what I got.
The timeline container did not appear fine until I show inspector browser.

Why does such behavior occur?

Regards
Valimo

Hello Valimo,

Try calling viewer.timeline.resize(). That will force the timeline to redraw.

Best,

Hannah

Hi Hannah, thanks now after calling this resize() method it has of course redrawn.

Regards