From 095367166bb6a4b3043336929e2a771997bcde37 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Tue, 2 Aug 2016 23:33:07 -0700 Subject: [PATCH] TextArea: starts with no rows. The first `layout()` will build what's required. --- src/views/text_area.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/views/text_area.rs b/src/views/text_area.rs index 4d370e6..68de657 100644 --- a/src/views/text_area.rs +++ b/src/views/text_area.rs @@ -46,11 +46,7 @@ impl TextArea { pub fn new() -> Self { TextArea { content: String::new(), - rows: vec![Row { - start: 0, - end: 0, - width: 0, - }], + rows: Vec::new(), enabled: true, scrollbase: ScrollBase::new().right_padding(0), last_size: None,