Size: a a a
HA
HA
var arrValues = document.querySelectorAll(".selection-item--property-value");
var arrNames = document.querySelectorAll(".selection-property--name");
var valuesHeight = [];
arrNames.forEach(function (itemName) {
arrValues.forEach(function (itemValue) {
if (itemName.dataset.propName === itemValue.dataset.propName) {
valuesHeight.push(itemValue.offsetHeight);
}
});
console.log(...valuesHeight);
itemName.style.height = Math.max(...valuesHeight);
});
A
HA
valuesHeight.push(itemValue.offsetHeight);
HA
HA