Skip to content

Fix improper list item rotation in VirtualizedScrollRectList (#534) - #536

Merged
shaynie merged 3 commits into
MixedRealityToolkit:mainfrom
shaynie:user/shaynie/fix534
Nov 2, 2023
Merged

Fix improper list item rotation in VirtualizedScrollRectList (#534)#536
shaynie merged 3 commits into
MixedRealityToolkit:mainfrom
shaynie:user/shaynie/fix534

Conversation

@shaynie

@shaynie shaynie commented Nov 2, 2023

Copy link
Copy Markdown
Contributor

Add fix for #534

When using the VirtualizedScrollRectList, the pool item prefabs are spawned as children of scrollRect.content with an initial rotation of Quaternion.identity. If the ScollRect or content are rotated, this will spawn the pool items at an angle to the ScrollRect whereas the desired behaviour is probably to spawn them aligned.

This fix instantiates the list items with the parent's rotation.

@shaynie
shaynie requested review from a team, AMollis and marlenaklein-msft as code owners November 2, 2023 18:16
@shaynie shaynie changed the title Fix #534 Nov 2, 2023
@shaynie
shaynie merged commit f669f5a into MixedRealityToolkit:main Nov 2, 2023
@AMollis AMollis added Type: Bug A problem with an existing feature that can be fixed with the next patched release. Package: UX Core The Project ux core package is impacted by this issue. labels Nov 3, 2023
@shaynie
shaynie deleted the user/shaynie/fix534 branch August 27, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Package: UX Core The Project ux core package is impacted by this issue. Type: Bug A problem with an existing feature that can be fixed with the next patched release.

4 participants