Lines Matching refs:widths
353 var widths = {};
356 widths[identifier] = (column["title"] || "").length;
363 if (text.length > widths[identifier])
364 widths[identifier] = text.length;
370 totalColumnWidths += widths[identifier];
372 // Compute percentages and clamp desired widths to min and max widths.
375 var width = Math.round(100 * widths[identifier] / totalColumnWidths);
383 widths[identifier] = width;
386 // If we assigned too much width due to the above, reduce column widths.
389 if (widths[identifier] > minPercent) {
390 --widths[identifier];
398 // If extra width remains after clamping widths, expand column widths.
401 if (widths[identifier] < maxPercent) {
402 ++widths[identifier];
411 column["element"].style.width = widths[identifier] + "%";
554 // Updates the widths of the table, including the positions of the column
568 // Give all the columns initial widths now so that during a resize,
570 // their widths, all the other columns already have percent values
571 // for their widths.