thscharler

Results 39 comments of thscharler

> > creating a Viewport that renders into a temp buffer. > > I tried something like this for a SQL client ([scrollable.rs](https://github.com/achristmascarl/rainfrog/blob/2704146abdcfd17761087b6e345db0d7c50f1f17/src/components/scrollable.rs)), but a major constraint I ran into...

The cursor would do it for me. And maybe some extra layers of buffers to render Hovers, Combobox and the like.

Is StatefulWidgetRef useful for anything at all? With the associated type State I can't have a `Vec` instead I would need a `Vec`. Which means I can't have a Vec...

Another thing is unclear to me. If I create a composite widget I end up cloning the contained widget like in ```rust use ratatui::buffer::Buffer; use ratatui::layout::Rect; use ratatui::style::{Style, Styled, Stylize};...

> > Which means I can't have a Vec with mixed widgets > > This is one of the reasons why this is unstable for now. I just made an...

> > > Which means I can't have a Vec with mixed widgets > > > > > > This is one of the reasons why this is unstable for...

> Given the confusions about the render traits… Should it be a trait in the first place? > > A struct feels long-term, so people expect them to be long-term....

I've noticed the same, but I thought this is a feature not a bug. Makes it easier to recognize double-clicks. `Down - Up - Up` instead of `Down - Up...

![Image](https://github.com/user-attachments/assets/95e3422b-ebdf-4d08-bb79-9e2693bfee9f)

![Image](https://github.com/user-attachments/assets/2d7faa33-4fc2-4c88-b63c-7b14a37107fe)