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

Fix CircularContainer using DrawSize too early #1119

Merged
merged 2 commits into from Oct 24, 2017

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Oct 24, 2017

Could be potentially caching an incorrect value.

Fixes ppy/osu#1416

Could be potentially caching an incorect value.
@peppy peppy added this to the 2017.1024.0 milestone Oct 24, 2017
@peppy peppy added bug labels Oct 24, 2017
@Tom94
Copy link
Collaborator

Tom94 commented Oct 24, 2017

While this looks like a good fix I am a bit concerned about how complicated it is to correctly implement such simple functionality within the framework. Gotta think some more about how this could be done better.

@peppy
Copy link
Sponsor Member Author

peppy commented Oct 24, 2017

I think the major take-away is that we shouldn't be doing anything in the Invalidate override that queries properties.

Another alternative approach here is to just use Schedule instead of a Cached, wasn't sure which looks better...

@peppy peppy merged commit 2552ee2 into ppy:master Oct 24, 2017
@smoogipoo
Copy link
Contributor

I prefer the Cached approach myself since Schedule would need to be cancelled.

@peppy
Copy link
Sponsor Member Author

peppy commented Oct 24, 2017

good point..

@peppy peppy deleted the fix-circular-container-again branch November 22, 2017 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants