Skip to content

Angularjs directive to resize an element's font-size property to fit its width.

License

Notifications You must be signed in to change notification settings

ah450/font-to-fit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Font to Fit

Angular directive for adjusting an element's font-size based on it's width.

i.e you want a drop down to have the same width for each item regardless of content without using a scrollbar.

#Example

  <div data-font-to-fit data-font-to-fit-text="textToResizeAccordingToCanBeModel"
  data-font-to-fit-update="true"
  >

##Note If you want to use a direct value wrap it in a string i.e data-font-to-fit-text='42'

About

Angularjs directive to resize an element's font-size property to fit its width.

Resources

License

Stars

Watchers

Forks

Packages

No packages published