19 lines
619 B
JavaScript
19 lines
619 B
JavaScript
(function (document, window) {
|
|
"use strict";
|
|
|
|
function enlargeSelectText() {
|
|
document.querySelectorAll(".matrix-report-form--legacy select").forEach(function (select) {
|
|
var currentSize = parseFloat(window.getComputedStyle(select).fontSize);
|
|
if (Number.isFinite(currentSize)) {
|
|
select.style.fontSize = (currentSize + 2) + "px";
|
|
}
|
|
});
|
|
}
|
|
|
|
if (document.readyState === "loading") {
|
|
document.addEventListener("DOMContentLoaded", enlargeSelectText, {once: true});
|
|
} else {
|
|
enlargeSelectText();
|
|
}
|
|
})(document, window);
|