-
-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why inner rectangle of a box is forced moved to screen? #405
Comments
I can't speak to why this is clamping occurs. However, if you could further explain what you are trying to achieve I may offer a solution. What do you mean by scrolling a Flex or Grid? Would creating an internal scrolling mechanism by updating a Grid to contain different rows achieve what you are looking for? |
Smart, I didn't think about. It's actually doable, but a bit hacky. It would probably require displaying only specific subset of elements instead of everything. What I want to achieve is basically a multi-line list (scrollable, not necessary selectable), containing multi-line And yet changing |
Early on, I was thinking of a class Such a |
I see. That
instead of
and therefore gives impression that there isn't anything more to scroll while there are still more items. |
Ok. So the clamping in I removed it with the latest commit. This meant that I needed to add screen boundary checking to all primitives. (Theoretically, it's not necessary because Please note that, say, a large |
Wow that was quick, thanks. Noted about the big buffers. |
Hi.
As I understand from this snippet
tview/box.go
Lines 318 to 323 in ae3d8ca
inside
Box
drawing function the inner rectangle is moved inside the screen. Because of this, displayed content might be different than expected (e. g. when you want to cut part of the text, it will still be visible, just in different position relative to the surrounding box).This makes scrolling of lets say
flex
orgrid
by a single row impossible. Or at least I couldn't figure out a way how to do it.Would it be possible to add an option to allow out of screen
inner rectangles
?Or is it a feature by design and I'm not getting something?
The text was updated successfully, but these errors were encountered: