You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like this plugin, but the main issue I have is that I'm not able to use this on dynamic divs.
For example, when you want to use this for a mobile website and the user rotates the screen you gain more space, but this plugin is not able to be dynamic.
The text was updated successfully, but these errors were encountered:
*has a huge lag (I know this wouldn't be an actual solution, but was testing);
it solves resizing to a smaller window, but not to a bigger window, as @ghost stated.
*The lag is also present in the begining, when the page loads. It loads without truncating and then updates the DOM. I'm testing it in an AngularJS app, so maybe I'm doing something wrong too
I have experienced the lag too. It was in a situation where I was trying to truncate over 100 texts. The lag is definitely caused by the hidden span tag (worker), which is used to properly calculate the actual width being taken up by the text. Unfortunately, I don't think there's any other way around this in order to get the actual width the text takes up inside of an element... Unless multi threading exists in JavaScript, lol!
I like this plugin, but the main issue I have is that I'm not able to use this on dynamic divs.
For example, when you want to use this for a mobile website and the user rotates the screen you gain more space, but this plugin is not able to be dynamic.
The text was updated successfully, but these errors were encountered: