Commit ff0889c5 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

fix height calculation on figure inside another zone

parent 1d8f0594
......@@ -380,7 +380,7 @@ attribute style {
(: 'width:' || (if($n/@lry) then $n/@lrx - (if($n/@ulx) then $n/@ulx else 0) - sum($n/ancestor::tei:zone/@lrx) || 'cm;' else '' ) || :)
'width:' || (if($n/@lry) then $n/@lrx - (if($n/@ulx) then $n/@ulx else 0) - (if ($n/parent::tei:line) then 0 else sum($n/ancestor::tei:zone/@lrx)) || 'cm;' else '' ),
(: 'height:' || $n/@lry - (if($n/@uly) then $n/@uly else 0) - sum($n/ancestor::tei:zone/@lry) || 'cm;':)
'height:' || $n/@lry - (if($n/@uly) then $n/@uly else 0) - (if ($n/parent::tei:line) then 0 else sum($n/ancestor::tei:zone/@lry)) || 'cm;'
'height:' || $n/@lry - (if($n/@uly) then $n/@uly else 0) || 'cm;'
) else
if (not($n/@ulx|$n/@uly|$n/@lrx) and $n//tei:fw)
then 'width:100%;'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment