Bug 39968 - Absolutely positioned block-container affects the normal-flow layout
Summary: Absolutely positioned block-container affects the normal-flow layout
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: awt renderer (show other bugs)
Version: 0.92
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-05 14:17 UTC by Martin Zak
Modified: 2012-04-07 01:51 UTC (History)
1 user (show)



Attachments
fo source to run example (1.18 KB, text/plain)
2006-07-05 14:23 UTC, Martin Zak
Details
output with absolutely positioned block-container (1.52 KB, application/octet-stream)
2006-07-05 14:24 UTC, Martin Zak
Details
output with no absolutely positioned block-container (1.50 KB, application/octet-stream)
2006-07-05 14:25 UTC, Martin Zak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Zak 2006-07-05 14:17:29 UTC
When he block following the absolutely positioned block-container has
space-before property defined, this property applies and the (second) block is
shifted down from the block-container.

Comments from Jeremias Maerki (fop-user list): 
Indeed, the BlockContainerLayoutManager creates a KnuthBox (w=0) in the
element list for the absolutely positioned block-container which is
currently interpreted by the SpaceResolver as a fence. And a fence makes
the SpaceResolver believe that there's content before the space. Looks
like we should find a solution to indicate to the SpaceResolver which
boxes are no fences. Another example would be the often-used empty block
at the end of the flow for "page x of y" which probably creates a fence,
too.
Comment 1 Martin Zak 2006-07-05 14:21:43 UTC
code snippet:

<fo:flow font-family="Times" font-size="12pt" flow-name="xsl-region-body"
margin-left="1.37in">

   <fo:block-container margin="0pt" padding="0pt" width="30pt"
start-indent="0pt" absolute-position="absolute">
       <fo:block>[abs]</fo:block>
   </fo:block-container>

   <fo:block space-before="9pt">lorem ipsum dolores...</fo:block>

</fo:flow>
Comment 2 Martin Zak 2006-07-05 14:23:38 UTC
Created attachment 18559 [details]
fo source to run example
Comment 3 Martin Zak 2006-07-05 14:24:43 UTC
Created attachment 18560 [details]
output with absolutely positioned block-container
Comment 4 Martin Zak 2006-07-05 14:25:15 UTC
Created attachment 18561 [details]
output with no absolutely positioned block-container
Comment 5 Glenn Adams 2012-04-07 01:42:11 UTC
resetting P2 open bugs to P3 pending further review