Open BlackEdder opened 2 years ago
Thanks for providing an example. I will take a look!
I am trying a fix here: https://github.com/ArthurSonzogni/FTXUI/pull/405
Thank you for the fast fix. I ended up going with a custom solution, because I have need of knowing the height of each element, but good to know I could fall back on this method.
Do you know what will happen if the flexbox that you set focus on is larger than the screen?
need of knowing the height of each element, but good to know I could fall back on this method. You can get this information by using:
Box box; auto document = element | reflect(&box); screen.Render(document); // `box` contains the dimensions of element as it was printed on the screen.
Do you know what will happen if the flexbox that you set focus on is larger than the screen? The implementation is located here: https://github.com/ArthurSonzogni/FTXUI/blob/master/src/ftxui/dom/frame.cpp#L100-L108
but I can't really say what happens just by reading the code. We must try and verify.
I am hoping to use ftxui in a console app I have been working on, but scrolling (yframe) behaves unexpectedly. If you try the code below, I would expect the focussed element in paragraph_renderer_left to always be visible, but instead as I scroll down, the focussed element goes one step down. I believe this might be due to the fact that my paragraph text takes two lines, while it expects one line of text? Am I misunderstanding something here?
Note that if you try the code below and you only see one line of text per element (because you have a wide screen), then you might need to resize your terminal and cause it to use multiple lines.