Search Issue Tracker
Not Reproducible
Votes
3
Found in
2017.1.1f1
Issue ID
954631
Regression
No
ScrollRect viewport rect dimensions are 0 in the first frame if Scroll Bar visibility is set to "Auto Hide And Expand Viewport"
Reproduction steps:
1. Open the attached project "ScrollViewBug.zip";
2. Open the Test scene;
3. Enter a play mode;
4. Observe the Console.
Expected results: PrintRectSize will print the correct dimensions of ScrollRect viewport.
Actual results: PrintRectSize prints zeros for the first frame.
Note: After changing visibility in the Inspector (Canvas->Scroll View->Visibility) for both scrollbars to "Permanent" or "Autohide", the console prints correct viewport of scrollbars.
Reproduced on: 5.5.3p3, 5.6.3p4, 2017.1.2f1, 2017.2.0f3, 2017.3.0b4.
Not reproduced in 2018.3.0a1
Comments (4)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
PieterAlbers
Apr 18, 2023 07:56
Reproducible in 2021.3.16
Bip901
Jan 09, 2022 18:24
Reproduced on 2020.3.3f1
flyingbanana
May 20, 2018 22:09
Reproduced on 2018.1.0b13.
Hikaru_T
Apr 25, 2018 08:03
It reproduced even on 2017.3.1f1 and annoyed me as well.