AztecEditor-Android
AztecEditor-Android copied to clipboard
Incorrect rendering / overlapping text / "stuck" lines when inserting list/heading above text
Expected
I can make lists, headers etc. and the text re-layouts itself without issues
Observed
In certain situation, lines below a header, list or bold text are not rendered correctly but on the incorrect vertical position.
Reproduced
- Start demo app
- Type a few plain text lines on the top
- Make first line to list
- (optional) type text to force line break on line or press enter button to generate more list items
Comments
- I tried to find what causes this problem for multiple hours, whiteout success.
- The issue can also be observed when changing text to a heading (instead of a list) or when converting text to bold text - so anything that changes the line height...?
- It seems like the problematic lines are "stuck" on a certain vertical position
- The problem can be "resolved" by calling "refreshText()" on the visual editor or by placing the cursor on the line that is incorrectly rendered
Tested
OnePlus 5 on Android 10 with v1.0 Pixel 5 on Android 11 with v1.0 Android Simulator on Android 10 & 6 with v1.0
Video: recordedVideo2020-11-20-135142.zip

Hello
Even we have used aztec library in our application and we are also facing the same issue when user applies ordered list option for one of the middle lines.
Not sure if they will fix this issue. But if you have found a fix let me know please as it would help us improve the performance of our application