@@ -70,13 +70,13 @@ impl Container {
71impl Default for Container {
71impl Default for Container {
72 fn default() -> Self {
72 fn default() -> Self {
73− Self::new(Layout::Horizontal)
73+ Self::new(Layout::Vertical)
77impl Tree {
77impl Tree {
78 pub fn new(area: Rect) -> Self {
78 pub fn new(area: Rect) -> Self {
79− let root = Node::container(Layout::Horizontal);
79+ let root = Node::container(Layout::Vertical);
81 let mut nodes = HopSlotMap::with_key();
81 let mut nodes = HopSlotMap::with_key();
82 let root = nodes.insert(root);
82 let root = nodes.insert(root);
@@ -322,7 +322,7 @@ impl Tree {
322 container.area = area;
322 container.area = area;
324 match container.layout {
324 match container.layout {
325− Layout::Vertical => {
325+ Layout::Horizontal => {
326 let len = container.children.len();
326 let len = container.children.len();
328 let height = area.height / len as u16;
328 let height = area.height / len as u16;
@@ -347,7 +347,7 @@ impl Tree {
347 self.stack.push((*child, area));
347 self.stack.push((*child, area));
350− Layout::Horizontal => {
350+ Layout::Vertical => {
351 let len = container.children.len();
351 let len = container.children.len();
353 let width = area.width / len as u16;
353 let width = area.width / len as u16;