Allow a Dimension::Fit to extend beyond the terminal maximum height (#950)

For long tables (and other DOM elements), one may want the screen to render on dimensions higher than the terminal.  
Hence, this PR proposes a way to do so, with an optional parameter in the `Dimension::Fit` util function.

Discussions / Issues :  
- https://github.com/ArthurSonzogni/FTXUI/issues/572
- https://github.com/ArthurSonzogni/FTXUI/discussions/949

Bug:https://github.com/ArthurSonzogni/FTXUI/issues/572
Fixed:Bug:https://github.com/ArthurSonzogni/FTXUI/issues/572
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
Boris Jaulmes
2024-11-07 21:07:09 +01:00
committed by GitHub
parent 55af678fb9
commit 70bc44d28b
4 changed files with 18 additions and 7 deletions

View File

@@ -183,7 +183,7 @@ Element align_right(Element);
Element nothing(Element element);
namespace Dimension {
Dimensions Fit(Element&);
Dimensions Fit(Element&, bool extend_beyond_screen = false);
} // namespace Dimension
} // namespace ftxui