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

nested float workaround #47

Merged
merged 2 commits into from
Dec 30, 2014
Merged

Conversation

hrj
Copy link
Member

@hrj hrj commented Dec 30, 2014

workaround for #46

Needs a better solution in the future.

hrj added 2 commits December 30, 2014 23:31
Workaround for gngrOrg#46

This is a quick and dirty hack. In the first pass, nested floats always get squeezed out into new lines. To avoid that, the first pass is detected with a condition (desiredWidth <= 0).

This is not a robust solution. A better way would be:
1. to use a separate boolean parameter for the first layout pass.
2. avoid overflowing the line. In the current workaround, a float can overflow the line.
hrj added a commit that referenced this pull request Dec 30, 2014
@hrj hrj merged commit d4adfd3 into gngrOrg:master Dec 30, 2014
@hrj hrj deleted the i46_nested_float_workaround branch October 31, 2015 13:03
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.

1 participant