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

Box-Sizing CSS3 support #18

Open
haxxxton opened this issue Mar 15, 2015 · 5 comments
Open

Box-Sizing CSS3 support #18

haxxxton opened this issue Mar 15, 2015 · 5 comments

Comments

@haxxxton
Copy link

Current calculation of font size appears to use (parent[0].offsetWidth - 6) as the detector of parent width. However, if the parent element has the following CSS applied:

-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;

Then the detected width fails to accommodate for any padding applied to the parent. (This is particularly noticeable when using Twitter Bootstrap with fittext elements directly inside col- items)

Current Hackaround for this is to wrap fittext elements in another div, however, out of the box support would be lovely :)

@axelson
Copy link

axelson commented Mar 21, 2015

+1

1 similar comment
@ghost
Copy link

ghost commented Mar 27, 2015

+1

@patrickmarabeas
Copy link
Owner

I'll look to get a fix pushed in the next week.

@makzumi
Copy link

makzumi commented Sep 25, 2015

Any updates on this? thanks

@willhoney7
Copy link

Did this every get implemented?

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

5 participants