Skip to content

Conversation

@xorgy
Copy link
Contributor

@xorgy xorgy commented Oct 29, 2025

No description provided.

@xorgy
Copy link
Contributor Author

xorgy commented Oct 29, 2025

I've gone ahead and run this, the primary view demo works well but I'm not 100% sure of the Masonry demo. It seems to let me focus in and type but I'd like a second set of eyes on it.

Copy link

@PoignardAzur PoignardAzur left a comment

Choose a reason for hiding this comment

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

LGTM, aside from the layer handling.

.with_child(NewWidget::new_with_props(
Flex::row()
.with_flex_child(TextInput::new("").with_auto_id(), 1.0)
.with_child(Button::new("Add task").with_auto_id()),

Choose a reason for hiding this comment

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

You can make this code slightly more readable with Button::with_text.


[dependencies]
android-view = { path = ".." }
masonry = { git = "https://github.com/linebender/xilem" }

Choose a reason for hiding this comment

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

I think you could use the crates.io release instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It didn't exist at that point 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh and also that has to go in the ui-events 0.2.0 PR, because that's a separate set of changes.

Comment on lines +235 to +243
RenderRootSignal::NewLayer(..) => {
// TODO
}
RenderRootSignal::RepositionLayer(..) => {
// TODO
}
RenderRootSignal::RemoveLayer(..) => {
// TODO
}

Choose a reason for hiding this comment

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

If you don't know how to handle those, you should replicate the version in masonry_winit which calls RenderRoot::add_layer and the like. We should probably document this in Masonry.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do, thanks.

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