Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested masking & corner radius specs are broken #2107

Open
devonnuri opened this issue Jan 22, 2019 · 2 comments
Open

Nested masking & corner radius specs are broken #2107

devonnuri opened this issue Jan 22, 2019 · 2 comments

Comments

@devonnuri
Copy link

I want to use ScrollContainer inside of CircularContainer.

But, its masking function is not working at all.

Is there a mistake in my code?

Code

@peppy
Copy link
Member

peppy commented Jan 22, 2019

The issue arises if you have masking at a lower level inside the scroll container (ie. you are using corner radius a second time).

This is a known shortcoming of the shader right now. A temporary work-around is to put the ScrollContainer inside a BufferedContainer

@peppy
Copy link
Member

peppy commented Jan 22, 2019

We had to workaround this exact issue for the osu! results screen, for reference:
https://github.com/ppy/osu/blob/master/osu.Game/Screens/Multi/Ranking/Pages/RoomLeaderboardPage.cs#L52

@peppy peppy added this to the Candidate Issues milestone Jan 22, 2019
@peppy peppy removed this from the Candidate Issues milestone Mar 17, 2020
@bdach bdach changed the title Masking is not working for ScrollContainer in CircularContainer Nested masking & corner radius specs are broken Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants