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 {
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user