mirror of
https://github.com/metanorma/xsdvi.git
synced 2024-10-04 00:07:09 +03:00
algorithm improved, #5
This commit is contained in:
parent
abe6134e43
commit
8b6cd66e75
@ -191,7 +191,14 @@
|
||||
var attX = xTrans(eBox);
|
||||
var descHeight = Number(attDescHeight);
|
||||
var heightAddon = 0;
|
||||
if(descHeight && attX === attDescX) heightAddon = descHeight;
|
||||
|
||||
var currWidth = eBox.getElementsByClassName("shadow")[0];
|
||||
if (currWidth) {
|
||||
currWidth = Number(currWidth.getAttribute("width"));
|
||||
} else {
|
||||
currWidth = 0;
|
||||
}
|
||||
if(descHeight && attDescX >= attX && attDescX < attX + currWidth) heightAddon = descHeight;
|
||||
|
||||
setYTrans(eBox, yTrans(eBoxLast)+%HEIGHT_SUM%+heightAddon);
|
||||
var parent = getParent(eBox);
|
||||
|
Loading…
Reference in New Issue
Block a user