Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" 
for change notification.

The following page has been changed by JeremiasMaerki:
http://wiki.apache.org/xmlgraphics-fop/SpaceResolution

The comment on the change is:
More on border and padding

------------------------------------------------------------------------------
  '''Element list:'''
  
  {{{
+ box w=lh for first line
+ 
+ penalty w=0 p=0 for the break possibility
+ 
+ box w=lh for second line
+ }}}
+ 
+ == Example 9 ==
+ 
+ Bringing border and padding into play (continued).
+ 
+ {{{
+ <fo:block space-before="10pt" padding-before="5pt" 
border-before-style="solid" border-before-width="2pt" 
border-before-width.conditionality="retain">
+   <fo:block space-before="6pt">first line</fo:block>
+   second line
+ </fo:block>
+ }}}
+ 
+ We ignore the break possibility before the second line because it is 
irrelevant for this example. All spaces and paddings are conditional. Only the 
border is non-conditional (the only change to the previous example). We begin a 
reference-area here, but the border interrupts the suppressing of elements like 
in the previous example. So only the first space-before is suppressed. After 
that the border is added and so is the padding as it is not suppressed under 
the conditionality rule anymore. The same applies to the second space-before.
+ 
+ '''Element list:'''
+ 
+ {{{
+ box w=7pt (2pt border + 5pt padding)
+ box w=0
+ penalty p=INF
+ glue w=6pt (space-before)
+ 
  box w=lh for first block
  
  penalty w=0 p=0 for the break possibility
@@ -314, +342 @@

  
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200509.mbox/[EMAIL 
PROTECTED]
  
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200509.mbox/[EMAIL 
PROTECTED]
  
+ It appears that border and padding handling needs to taken into 
consideration, too, as they can both have conditionality elements. Following 
Simon's suggestion for creating space objects that are placed into the returned 
element list, we'd have to create objects for border and padding, too.
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to