Answers for "spreadjs autofit column with minimum"

1

spreadjs autofit column with minimum

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);
};
Posted by: Guest on August-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language