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:
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 :)
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: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 :)