Home | History | Annotate | Download | only in ui

Lines Matching refs:widths

477      * @param {!Array.<number>} widths
482 _autoSizeWidths: function(widths, minPercent, maxPercent)
485 minPercent = Math.min(minPercent, Math.floor(100 / widths.length));
487 for (var i = 0; i < widths.length; ++i)
488 totalWidth += widths[i];
490 for (var i = 0; i < widths.length; ++i) {
491 var width = Math.round(100 * widths[i] / totalWidth);
497 widths[i] = width;
502 for (var i = 0; i < widths.length; ++i) {
503 if (widths[i] > minPercent) {
504 --widths[i];
513 for (var i = 0; i < widths.length; ++i) {
514 if (widths[i] < maxPercent) {
515 ++widths[i];
523 return widths;
533 var widths = [];
535 widths.push((this._columnsArray[i].title || "").length);
543 if (text.length > widths[j])
544 widths[j] = text.length;
548 widths = this._autoSizeWidths(widths, minPercent, maxPercent);
551 this._columnsArray[i].weight = widths[i];
572 // Updates the widths of the table, including the positions of the column
586 // Use container size to avoid changes of table width caused by change of column widths.
592 // Give all the columns initial widths now so that during a resize,
594 // their widths, all the other columns already have percent values
595 // for their widths.