Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor control to use ListView #125

Merged
merged 1 commit into from
Mar 23, 2022
Merged

Conversation

jperedadnr
Copy link
Collaborator

Fixes #122

Full refactoring of the previous version.
It uses a ListView control, to lay out a TextFlow control per ListCell. This control will render a paragraph (that can have multiple decorations and pieces).
A paragraph list found from the pieceTable iterating over line feed characters.
Selection and caret work as expected.

There are minor issues to fix with the scrollbars and when resizing the ListView.

There are TODOs with some pending improvements for a next iteration (mainly related to paragraph features).

Copy link
Collaborator

@eugener eugener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much more complex rendering.. but looks good to me.

@jperedadnr jperedadnr merged commit a1be8e4 into gluonhq:master Mar 23, 2022
@jperedadnr jperedadnr deleted the 122-listview branch March 23, 2022 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor control
3 participants