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 {
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,