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

Resize within height as well #23

Open
MarcMagnin opened this issue Aug 2, 2017 · 2 comments
Open

Resize within height as well #23

MarcMagnin opened this issue Aug 2, 2017 · 2 comments

Comments

@MarcMagnin
Copy link

Hi,

Thanks for that really nice library.

I'm trying to vertically align the resized text using flexbox but is doesn't seems to be resizing at all.
Any idea how I can achieve a vertical alignment within flexboxes?

Regards

@MarcMagnin
Copy link
Author

Cool, I've just added width:100% to the div and that resize fine.

Anyway to consider the height of the parent as well?
image

@MarcMagnin MarcMagnin changed the title Resize in flexbox Resize within height as well Aug 2, 2017
@damiangreen
Copy link

I've created a library that solves this, that works with react 16+ and allows for resizing of components https://github.com/damiangreen/isomorphic-react-fittext

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

No branches or pull requests

2 participants