Skip to content
Discussion options

You must be logged in to vote

You must use Root for your root element on window. There have special window resizing feature provider from this.

And GPUI Component required the root element must to use the Root.

https://github.com/huacnlee/gpui-app/blob/8a3ef51ea1532c4d3a207db25a6e21d8dda6707f/crates/hello_world/src/main.rs#L63

https://github.com/huacnlee/gpui-app/blob/8a3ef51ea1532c4d3a207db25a6e21d8dda6707f/crates/ui/src/root.rs#L379-L388

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amwps290
Comment options

Answer selected by amwps290
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants