mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	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:
		| @@ -55,7 +55,8 @@ int main() { | ||||
|   content.DecorateCellsAlternateRow(color(Color::White), 3, 2); | ||||
|  | ||||
|   auto document = table.Render(); | ||||
|   auto screen = Screen::Create(Dimension::Fit(document)); | ||||
|   auto screen = | ||||
|       Screen::Create(Dimension::Fit(document, /*extend_beyond_screen=*/true)); | ||||
|   Render(screen, document); | ||||
|   screen.Print(); | ||||
|   std::cout << std::endl; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Boris Jaulmes
					Boris Jaulmes