TextArea: starts with no rows.

The first `layout()` will build what's required.
This commit is contained in:
Alexandre Bury 2016-08-02 23:33:07 -07:00
parent d3d86a2f45
commit 095367166b

View File

@ -46,11 +46,7 @@ impl TextArea {
pub fn new() -> Self { pub fn new() -> Self {
TextArea { TextArea {
content: String::new(), content: String::new(),
rows: vec![Row { rows: Vec::new(),
start: 0,
end: 0,
width: 0,
}],
enabled: true, enabled: true,
scrollbase: ScrollBase::new().right_padding(0), scrollbase: ScrollBase::new().right_padding(0),
last_size: None, last_size: None,