Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Scrollable TabBar display bug in --release build #23339
Hello. There is a problem with the display of the Scrollable TabBar in --release assemblies. I took the sample code from the official documentation, made 5 tabs and got the result as in the screenshot. The first tab is partially outside the left edge of the screen. There is no problem in the --debug build.
This is a race between the embedder providing the viewport dimensions and the TabBar widget calculating the scroll offset. The embedder may initially claim that the viewport has zero width/height, and if the TabBar framework code runs before the real values arrive then the resulting offset will be wrong. The framework does not appear to recalculate the offset when the viewport metrics are updated.