Steps to reproduce:
- Open the attached project
- Open the SampleScene
- Add a Grid Layout Group component to the ScrollView game object
- Undo the Add Component action
- Observe the positions of ScrollView's elements
Actual results: Scrollbar handles become offset
Expected results: All ScrollView's elements are restored to their original positions before the Layout Group component was added
Reproducible with versions: 2022.3.74f1, 6000.0.77f1, 6000.3.18f1, 6000.4.12f1, 6000.5.0f1, 6000.6.0a7
Tested on (OS): macOS 26.5.1, Ubuntu 24
Notes:
- The issue does not occur if the ScrollView object is placed at the (0,0) position before adding the component and performing Undo