"Zoom Timeline To Fit" does not work sometimes

What is your operating system?
Apple M2 Pro
MacOS 14.3.1

What is your Shotcut version (see Help > About Shotcut)?
24.02.29

Can you repeat the problem? If so, what are the steps?
(Please be specific and use the names as seen in Shotcut, preferably English. Include a screenshot or screen recording if you can. Also, you can attach logs from either View > Application Log or right-click a job and choose View Log.)

“Zoom Timeline To Fit” does not work sometimes. Sometimes it does work and sometimes it does not. Same issue can be seen on Windows 11. This used to work OK few releases ago.

Is there a workaround such as click again? What I reproduced was that it sometimes was too zoomed out, very short. And the workaround worked for me.

Yes, clicking it again does resolve the issue. Yes, in 1st click attempt, timeline is too short. This used to work just fine a couple of releases ago. Something may have changed/regressed in the last 6 months.

Fixed for the next version, probably 24.04

Thanks!