Skip to content
Discussion options

You must be logged in to vote

Hi!

I think the issue is that you attach the name to the TextArea directly, but you query it expecting to find it wrapped in a HideableView.

Also note that full_width and full_height will add their own wrappers. It may be easier to wrap things in this order:

  • Base TextArea
  • HideableView
  • Name
  • ResizedView
        .child(
            TextArea::new()
                .wrap_with(HideableView::new) // from cursive::traits::With
                .with_name("editor_inner")
                .full_screen() // Combines both width and height
        )

Then the name will point to the HideableView you expect.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

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