Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
};
Source by www.grapecity.com #
 
PREVIOUS NEXT
Tagged: #spreadjs #autofit #column #minimum
ADD COMMENT
Topic
Name
8+9 =