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

In a wide div with a short height the contents overflow the containing div unless a max font is specified #28

Open
damiangreen opened this issue Aug 15, 2018 · 2 comments

Comments

@damiangreen
Copy link

damiangreen commented Aug 15, 2018

In a wide div with a short height the contents overflow the containing div unless a max font is specified.
I'm not sure if this is by design, but I would have thought the container should constrain it.

image

@MatanMaimon
Copy link

MatanMaimon commented Aug 23, 2019

look at this - https://github.com/kennethormandy/react-fittext (based on this library)
they have a vertical fit text ability

@damiangreen
Copy link
Author

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