Commit Graph

7 Commits

Author SHA1 Message Date
Alexandre Bury
2cd6d7a80c Make backends pausable 2020-08-04 23:24:11 -07:00
James Tai
bc49eebeb8
Fix text alignment when wrapped (#471)
* Fix text alignment when wrapped

This changes the `LinesIterator` to return a `width` that corresponds
with the actual total length of the chunks, rather than returning the
total available width, when a line is wrapped. This effectively reverts
20cb033b8d (I am not sure why that commit
changed it).

* Add `is_wrapped` flag to `Row`

* Fix TextArea width with wrapped rows

Co-authored-by: Alexandre Bury <alexandre.bury@gmail.com>
2020-07-25 16:51:33 -07:00
Alexandre Bury
d31d0d0d76 Derive more stuff 2020-07-13 12:54:03 -07:00
Alexandre Bury
9bc1cd04c3 Add ScrollView::on_scroll 2020-06-30 23:22:44 -07:00
Alexandre Bury
e3a266aa0e Add once1! macro 2020-06-14 22:51:57 -07:00
Alexandre Bury
0a14106127 Fix doc links accross re-use 2020-05-26 11:01:28 -07:00
Alexandre Bury
4154f99b44 Split non-backend code into cursive-core 2020-04-23 13:46:00 -07:00