Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
ff0889c5
Commit
ff0889c5
authored
Jul 26, 2019
by
Mathias Goebel
Browse files
fix height calculation on figure inside another zone
parent
1d8f0594
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/transform.xqm
View file @
ff0889c5
...
...
@@ -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%;'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment