mirror of
https://github.com/metanorma/xsdvi.git
synced 2024-10-04 00:07:09 +03:00
element dynamic position calculation updated in js, #5
This commit is contained in:
parent
f74fb63760
commit
58c1c1e1e9
@ -186,7 +186,12 @@
|
||||
if (!eBoxLast) return;
|
||||
if (isOnHigherLevel(eBoxLast, eBox)) {
|
||||
//setYTrans(eBox, yTrans(eBoxLast)+"+(AbstractSymbol.MAX_HEIGHT+AbstractSymbol.Y_INDENT)+");\n"+
|
||||
setYTrans(eBox, yTrans(eBoxLast)+%HEIGHT_SUM%);
|
||||
var attDescHeight = eBoxLast.getAttribute('data-desc-height');
|
||||
var descHeight = Number(attDescHeight);
|
||||
var heightAddon = 0;
|
||||
if(descHeight) heightAddon = descHeight;
|
||||
|
||||
setYTrans(eBox, yTrans(eBoxLast)+%HEIGHT_SUM%+heightAddon);
|
||||
var parent = getParent(eBox);
|
||||
var line = document.getElementById('p'+eBox.id);
|
||||
if (!parent || !line) return;
|
||||
|
Loading…
Reference in New Issue
Block a user