Karl Felix Schewe

Results 25 comments of Karl Felix Schewe

https://docs.rs/ratatui/latest/ratatui/layout/struct.Layout.html#method.margin I find this API especially confusing, since it doesn't use `layout::Margin`, which is only used in `Rect::inner`. For example, when I want to create a `Layout` with only a...

I like the idea to simplify the types and think that using generics to indicate that `Size` or `Position` is used as a relative value (what I called delta) seems...

I created this PR as draft because I almost forgot about it. I will refine it tomorrow

I couldn't run the CI locally yet, because something is missing in my setup. But some of the documentation changes could be reviewed now.

Another thing I observed is that occasionally the scrollbar handle changes its size by one when moving it (looks a bit like a caterpillar crawling 😄). But I am not...

I think that is a tradeoff whether you prefer to have a constant handle size or accurate representation of position. I also think half block would be to complex for...

I'll review and summarise the changes tomorrow as I should have some time on a train journey.

`Size` wouldn't work because its fields are defined as `u16` thus not allowing for negative values for resizing (shrinking a `Rect`). It would be nice to evaluate if there is...

Interesting, I didn't know that I can also do additions with `Rect`

This is what I had in mind: ```Rust let area = Rect::new(0, 0, 20, 30) .offset(Offset { x: 0, y: 4 }) .resize(ResizeOffset { width: -5, height: 5, }); ```...