Includes basic ability to determine line_height from .el { max-height: val; overflow:hidden }.
If lines is set to 'auto' we use $(element).height() as the line_height and use $(element).prop('scrollHeight') as the content height. Otherwise default (previous) behaviour is used.
Default value of lines is still 1.
Check the demo. This works 'fine for me'. Thanks a lot for this plugin, it's very efficient.
Includes basic ability to determine
line_height
from.el { max-height: val; overflow:hidden }
.If
lines
is set to'auto'
we use $(element).height() as theline_height
and use$(element).prop('scrollHeight')
as the content height. Otherwise default (previous) behaviour is used.Default value of
lines
is still1
.Check the demo. This works 'fine for me'. Thanks a lot for this plugin, it's very efficient.
Feedback/improvements welcomed.