Skip to content

Commit ddc4daf

Browse files
committed
Learning to use GitHub...
1 parent a3b77f1 commit ddc4daf

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

imported1.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
h2 {
2+
color: blue;
3+
}

imported2.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
h3 {
2+
color: green;
3+
}

js/almcss3/template.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,11 @@ ALMCSS.template = function() {
429429
function computeWidths() {
430430
var i, result = [];
431431
for (i = 0; i < numberOfColumns; i++) {
432-
result[i] = i < columnWidths.length ? columnWidths[i] : Width.equal;
432+
if (columnWidths && i < columnWidths.length) {
433+
result[i] = columnWidths[i];
434+
} else {
435+
result[i] = Width.equal;
436+
}
433437
}
434438
columnWidths = result;
435439
}
@@ -461,6 +465,7 @@ ALMCSS.template = function() {
461465
};
462466

463467
normalizeRows();
468+
computeWidths();
464469
createSlots();
465470

466471
template = new Template(rows, columnWidths, slots, selectorText, cssText);

0 commit comments

Comments
 (0)