mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
TextArea: starts with no rows.
The first `layout()` will build what's required.
This commit is contained in:
parent
d3d86a2f45
commit
095367166b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user