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

Replace AdaptiveView with Makepad's version. Fixes rooms search bug. #316

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

joulei
Copy link
Contributor

@joulei joulei commented Jan 6, 2025

Depends on makepad/makepad#629 - merged ✅

Changes

Replaces AdaptiveView with the newly ported version in Makepad. (you'll notice some small API changes)
In Robrix's version, AdaptiveView always creates a default active widget on after_apply_from. This is problematic because RoomPreview sets the AdaptiveView variant selector in its after_new_from_doc which is called after AdaptiveView's (or any of its children) after_apply_from. This was causing some lifecycle issues where the AdaptiveView would require another redraw after its parent after_new_from_doc, causing some visual artifacts.

Copy link
Member

@kevinaboos kevinaboos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! glad we could get to the bottom of this.

I left a question but it's not a blocker for merging this.

@kevinaboos kevinaboos merged commit 1e13255 into project-robius:main Jan 6, 2025
3 checks passed
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.

2 participants