spreadjs autofit column with minimum

JavaScript
var _oldFn = GC.Spread.Sheets.CellTypes.Base.prototype.getAutoFitWidth;
GC.Spread.Sheets.CellTypes.Base.prototype.getAutoFitWidth = function() {
  let minWidth = 100;
  let width = _oldFn.apply(this, arguments);
  return Math.max(minWidth, width);
};
Source

Also in JavaScript: