function checkTextOverflow() {
    // Check for any overflowing text
    let tableChildren = $($(table)[0]).find('td');
    for (var i = 0; i < tableChildren.length; i++) {
      let el = $(tableChildren).get(i);
      // Only check odd numbers in el list (The Value field) Assume all titles are set well
      if (i % 2 == 1) {
        let alreadyAssigned = $(el).hasClass('largeValue');
        let overflow = isGreater(el.scrollWidth, $(el).width());
        if (el.hasAttribute('data-scrollWidth')) {
          overflow = isGreater($(el).attr('data-scrollWidth'), $(el).width());
        }
        if (overflow && !(alreadyAssigned)) {
          // Add the data-scrollWidth attr so that it never changes
          $(el).addClass('largeValue').attr('data-scrollWidth', el.scrollWidth);
        }
        // If largeValue fix the overflow
        if ($(el).hasClass('largeValue')) {
          fixLargeValues(el);
        }
      }
    }
  }
/**
   * Function to check whether text has overflown in a text table
   */
Function to check whether text has overflown in a text table
Function to check whether text has overflown in a text table
function checkTextOverflow() {
    let tableChildren = $($(table)[0]).find('td');
    for (var i = 0; i < tableChildren.length; i++) {
      let el = $(tableChildren).get(i);
      if (i % 2 == 1) {
        let alreadyAssigned = $(el).hasClass('largeValue');
        let overflow = isGreater(el.scrollWidth, $(el).width());
        if (el.hasAttribute('data-scrollWidth')) {
          overflow = isGreater($(el).attr('data-scrollWidth'), $(el).width());
        }
        if (overflow && !(alreadyAssigned)) {
          $(el).addClass('largeValue').attr('data-scrollWidth', el.scrollWidth);
        }
        if ($(el).hasClass('largeValue')) {
          fixLargeValues(el);
        }
      }
    }
  }
function checkTextOverflow ( ) { let tableChildren = $ ( $ ( table ) [ 0 ] ) . find ( 'td' ) ; for ( var i = 0 ; i < tableChildren . length ; i ++ ) { let el = $ ( tableChildren ) . get ( i ) ; if ( i % 2 == 1 ) { let alreadyAssigned = $ ( el ) . hasClass ( 'largeValue' ) ; let overflow = isGreater ( el . scrollWidth , $ ( el ) . width ( ) ) ; if ( el . hasAttribute ( 'data-scrollWidth' ) ) { overflow = isGreater ( $ ( el ) . attr ( 'data-scrollWidth' ) , $ ( el ) . width ( ) ) ; } if ( overflow && ! ( alreadyAssigned ) ) { $ ( el ) . addClass ( 'largeValue' ) . attr ( 'data-scrollWidth' , el . scrollWidth ) ; } if ( $ ( el ) . hasClass ( 'largeValue' ) ) { fixLargeValues ( el ) ; } } } }
Function to check whether text has overflown in a text table
Function to check whether text has overflown in a text table
// Check for any overflowing text // Only check odd numbers in el list (The Value field) Assume all titles are set well // Add the data-scrollWidth attr so that it never changes // If largeValue fix the overflow