ScrollBar not showing when content size changed?

Creator Version: 3.4.2

  1. Create a new ScrollView with a Vertical Scrollbar.
  2. Set the content to be smaller than the view:
    2.1. Content have Layout component with ResizeMode is CONTAINTER
    2.2. Item of content have Label component with Overflow is RESIZE_HEIGHT
    2.3. Make sure content have height smaller than the view
  3. Set up a button, when click button, it will change label with a long string and make sure content height larger than view height.

At init time, scroll bar hidden, and when I click button to change label, scroll bar still hidden. Please check!

Test.zip (1.6 MB)

Thanks for the feedback, we already have feedback on the same issue here:The scrollbar is not displayed properly. · Issue #10785 · cocos/cocos-engine · GitHub

You can modify the engine code according to the above, or wait for issue to fix.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.