|
|
|
|
@ -2034,10 +2034,15 @@ HTML = """<!doctype html>
|
|
|
|
|
}
|
|
|
|
|
function fitConfigBlockContent(block) {
|
|
|
|
|
if (!block || configBlockState(block) || block._configManualHeight) return false;
|
|
|
|
|
const entry = configLayout[block.dataset.section];
|
|
|
|
|
if (block.style.height && block.style.height !== 'auto') {
|
|
|
|
|
block.style.height = 'auto';
|
|
|
|
|
if (entry) { delete entry.height; delete entry.manualHeight; }
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
const contentHeight = block.scrollHeight;
|
|
|
|
|
if (!contentHeight || block.offsetHeight <= contentHeight + 120) return false;
|
|
|
|
|
block.style.height = 'auto';
|
|
|
|
|
const entry = configLayout[block.dataset.section];
|
|
|
|
|
if (entry && Object.prototype.hasOwnProperty.call(entry, 'height')) {
|
|
|
|
|
delete entry.height;
|
|
|
|
|
delete entry.manualHeight;
|
|
|
|
|
|