mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-01 02:58:12 +08:00 
			
		
		
		
	Fix layout bug detected thanks to dom_tests.
This commit is contained in:
		| @@ -44,9 +44,6 @@ class HBox : public Node { | ||||
|  | ||||
|     int x = box.x_min; | ||||
|     for (auto& child : children) { | ||||
|       if (x > box.x_max) | ||||
|         break; | ||||
|  | ||||
|       Box child_box = box; | ||||
|       child_box.x_min = x; | ||||
|  | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| #include <iostream> | ||||
| #include <algorithm> | ||||
|  | ||||
| #include "ftxui/dom/elements.hpp" | ||||
| @@ -44,9 +45,6 @@ class VBox : public Node { | ||||
|  | ||||
|     int y = box.y_min; | ||||
|     for (auto& child : children) { | ||||
|       if (y > box.y_max) | ||||
|         break; | ||||
|  | ||||
|       Box child_box = box; | ||||
|       child_box.y_min = y; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ArthurSonzogni
					ArthurSonzogni