devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
13 lines (12 loc) • 474 B
JavaScript
/**
* DevExtreme (esm/renovation/ui/pager/utils/calculate_values_fitted_width.js)
* Version: 21.1.4
* Build date: Mon Jun 21 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
export var oneDigitWidth = 10;
export function calculateValuesFittedWidth(minWidth, values) {
return minWidth + oneDigitWidth * Math.max(...values).toString().length
}