Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.4.0f1

2018.3.0a1

2018.3.2f1

2019.1.0a1

2019.2.0a3

Issue ID

1120687

Regression

No

Object's RectTransform with ContentSizeFitter isn't scaled when UI elements are enabled/disabled via a Toggle

uGUI

-

How to reproduce:
1. Open the attached project ("Case_1120687 Scrollview.zip")
2. Enter Play Mode
3. In the Game View click Toggle to disable the bottom two images
4. Observe the "Canvas" -> "Scroll View NOT OK" -> "Viewport" -> "Content" RectTransform and the Slider in the Game View

Expected result: The slider is no longer visible and the RectTransform's Heigh is lowered
Actual result: The slider is still visible and the RectTransform's Heigh is the same (245.96)

Reproduced in: 2019.2.0a3, 2019.1.0b1, 2018.3.3f1, 2017.4.19f1

Note: Manually disabling/enabling the Image objects scales the RectTransform and the slider properly

  1. Resolution Note (2019.2.X):

    low priority and minor or cosmetic issues. likely won't fix.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.