tntd 1.4.13 → 1.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,8 +33,7 @@ var tolerance = 0; // In px. Depends on the font you are using
33
33
 
34
34
  var isEllipsisActive = function isEllipsisActive(e) {
35
35
  if (e.offsetWidth === e.scrollWidth && e.offsetHeight === e.scrollHeight) {
36
- var cName = 'overflow';
37
- e.parentNode.className = e.parentNode.className.replace(new RegExp('(\\s|^)' + cName + '(\\s|$)'), ' ');
36
+ e.parentNode.setAttribute('style', 'overflow:visible');
38
37
  }
39
38
 
40
39
  return e.offsetWidth + tolerance < e.scrollWidth || e.offsetHeight < e.scrollHeight;
@@ -45,8 +45,7 @@ var tolerance = 0; // In px. Depends on the font you are using
45
45
 
46
46
  var isEllipsisActive = function isEllipsisActive(e) {
47
47
  if (e.offsetWidth === e.scrollWidth && e.offsetHeight === e.scrollHeight) {
48
- var cName = 'overflow';
49
- e.parentNode.className = e.parentNode.className.replace(new RegExp('(\\s|^)' + cName + '(\\s|$)'), ' ');
48
+ e.parentNode.setAttribute('style', 'overflow:visible');
50
49
  }
51
50
 
52
51
  return e.offsetWidth + tolerance < e.scrollWidth || e.offsetHeight < e.scrollHeight;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tntd",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "description": "ued tnt design",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",