Skip to content

Move flex-item and flex-line layout passes to methods instead of closures#209

Merged
alice-i-cecile merged 4 commits intoDioxusLabs:mainfrom
Weibye:closures-to-methods
Jul 27, 2022
Merged

Move flex-item and flex-line layout passes to methods instead of closures#209
alice-i-cecile merged 4 commits intoDioxusLabs:mainfrom
Weibye:closures-to-methods

Conversation

@Weibye
Copy link
Copy Markdown
Collaborator

@Weibye Weibye commented Jul 27, 2022

Objective

Fixes #200

Feedback wanted

I'm not quite certain on how to properly test this as testing this would require fully testing the entire layout algorithm first, so I'm leaving it blank for now.

@Weibye Weibye requested a review from alice-i-cecile July 27, 2022 10:15
@alice-i-cecile alice-i-cecile added the code quality Make the code cleaner or prettier. label Jul 27, 2022
@alice-i-cecile
Copy link
Copy Markdown
Collaborator

I'm fine to leave the tests for later.

@alice-i-cecile alice-i-cecile enabled auto-merge (squash) July 27, 2022 11:32
@alice-i-cecile alice-i-cecile merged commit 8968660 into DioxusLabs:main Jul 27, 2022
@Weibye Weibye deleted the closures-to-methods branch July 27, 2022 13:29
jkelleyrtp pushed a commit that referenced this pull request Oct 10, 2022
…ures (#209)

* Fix typos

* Move closures to methods

* Allow many arguments

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code quality Make the code cleaner or prettier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move closures in final_layout_pass() to standalone methods

2 participants