1
2
3
4
5
6
7
8
9
10
resizeCell: function(ref, dup) {
  var fullWidth  = ref.offsetWidth;
  var innerWidth = 0;
  dup.style.width = innerWidth + "px";
  
  while (dup.offsetWidth < fullWidth) {
    innerWidth++;
    dup.style.width = innerWidth + "px";
  }
}