MediaWiki:Common.js: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
/* === PREPRINT START === */ | /* === PREPRINT START === */ | ||
/* ============================================ | /* ============================================ | ||
PREPRINT v7.17 - JS | PREPRINT v7.17 - JS v260212r5 | ||
ARCHITECTURE: | ARCHITECTURE: | ||
| Zeile 708: | Zeile 708: | ||
function applyPortraitProjection() { | function applyPortraitProjection() { | ||
if (layout && layout[0]) layout[0].style.paddingBottom = ''; | if (layout && layout[0]) layout[0].style.paddingBottom = ''; | ||
$('. | $('.outer-column').css('min-height', ''); | ||
// Clear inline positioning | // Clear inline positioning | ||
linkage.forEach(function(link) { | linkage.forEach(function(link) { | ||
| Zeile 967: | Zeile 967: | ||
function syncOCtoIC() { | function syncOCtoIC() { | ||
// | // Set min-height on each OC so grid row accommodates its content | ||
$('. | $('.outer-column').each(function() { | ||
var $oc = $(this); | |||
if (!document.body.classList.contains('preprint-landscape')) { | |||
$oc.css('min-height', ''); | |||
return; | |||
var | |||
} | } | ||
var maxBottom = 0; | |||
$oc.children('.place-oc, .place-lh, .preprint-table-oc-wrapper').each(function() { | |||
var top = parseFloat($(this).css('top')) || 0; | |||
var height = $(this).outerHeight(true); | |||
var bottom = top + height; | |||
if (bottom > maxBottom) maxBottom = bottom; | |||
}); | |||
$oc.css('min-height', maxBottom > 0 ? maxBottom + 'px' : ''); | |||
}); | }); | ||
} | } | ||
| Zeile 1.651: | Zeile 1.632: | ||
})(); | })(); | ||
/* === PREPRINT END === */ | /* === PREPRINT END === */ | ||