src/components/tabs/tabsPaginationService.js
function getTotalTabsWidth(elements) {
    var sum = 0, i, tab;

    for (i = 0; i < elements.tabs.length; i++) {
      tab = elements.tabs[i];
      sum += tab.offsetWidth;
    }

    return sum;
  }
function getTotalTabsWidth(elements) {
    var sum = 0, i, tab;

    for (i = 0; i < elements.tabs.length; i++) {
      tab = elements.tabs[i];
      sum += tab.offsetWidth;
    }

    return sum;
  }
function getTotalTabsWidth ( elements ) { var sum = 0 , i , tab ; for ( i = 0 ; i < elements . tabs . length ; i ++ ) { tab = elements . tabs [ i ] ; sum += tab . offsetWidth ; } return sum ; }
Sum the width of all tabs.

@param elements
@returns {number}
Sum the width of all tabs .