dibari / angular-ellipsis

Angular directive to truncate multi-line text to visible height

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make max-height work for truncation

dibari opened this issue · comments

Currently, the element must have a height attribute set. Many times a max-height attribute would be better used instead. Make max-height work and have precedence over height (if height is set)

Max-height support was now added, in addition to the existing height. Specifically:

  • As expected, height will ensure a uniform element height, where max-height will conform vertically
  • Only one is required: height or max-height
  • max-height takes precedence over height