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

Fix full page blocks #1541

Merged
merged 2 commits into from
Oct 19, 2021
Merged

Conversation

jeetiss
Copy link
Collaborator

@jeetiss jeetiss commented Oct 13, 2021

fix #1509

);
const setNodeHeight = node => {
const value = isPage(node) ? node.box.height : node.style.height;
return setHeight(value);
Copy link
Owner

Choose a reason for hiding this comment

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

I like removing these ramda non-sense abstractions haha. I think there was a reason why for non-page nodes we were getting pre-computed box values... but cannot remember exactly. I'm afraid this might have side-effects. Anything you can think of?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think there was a reason why for non-page nodes we were getting pre-computed box values... but cannot remember exactly.

I don't know the reason too. I found commit message for this change, but it not informative bc0c3d1#diff-ec385a60982dcf369e67bbfe43eea67a5136efb7fd8c6ae3309f58208417b93d

I'm not an expert in yoga, but looks like it should be faster to calculate layout with predefined height values and i think that performance the only one reason. but it creates this weird inconvenient element size on the pages.
i debug and test this very well, and i can explain the bug flow if you interested in, and you can release it with beta tag for proper testing if you afraid this might have side-effects

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks @jeetiss ! You're great.

i debug and test this very well

I think this is enough for me. I also tested it yesterday with no issues also. Agree it could've been a performance thing

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.

flexbox elements doesn't stretch to full page size
2 participants