How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

chrispitude
Posts: 57
Joined: Thu May 02, 2019 2:32 pm

How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Post by chrispitude » Thu May 09, 2019 6:07 pm

We use margin-top and margin-bottom to keep our elements spaced properly. For example, our H2s have a margin-top of 14pt to visually set them away from the preceding content.

The problem is, the margins get applied even at the very top (or bottom) of the content area on the printed page. If the @page margins are 1in all around and an H2 is the first element on the page, then it's pushed 14pt down from that 1in top margin.

How do I suppress margin from being applied at the top and bottom of the page content bounding box?

chrispitude
Posts: 57
Joined: Thu May 02, 2019 2:32 pm

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Post by chrispitude » Mon May 13, 2019 5:26 pm

I haven't been able to file a solution, so I filed a support request. I'll update this thread with the results.

Dan
Posts: 416
Joined: Mon Feb 03, 2003 10:56 am

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Post by Dan » Tue May 14, 2019 3:48 pm

Hello Chris,
This is interesting, than you for reporting it. We will try to find a solution.

Many regards,
Dan

Dan
Posts: 416
Joined: Mon Feb 03, 2003 10:56 am

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Post by Dan » Wed May 15, 2019 3:48 pm

We found something, we could use the space-before and space-after FO attributes instead of margin-top and margin-bottom in the intermediate FO file. We will notify you when we have a build.

chrispitude
Posts: 57
Joined: Thu May 02, 2019 2:32 pm

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Post by chrispitude » Wed May 15, 2019 7:17 pm

Dan wrote:
Wed May 15, 2019 3:48 pm
We found something, we could use the space-before and space-after FO attributes instead of margin-top and margin-bottom in the intermediate FO file. We will notify you when we have a build.
This sounds very promising - thank you!!

Dan
Posts: 416
Joined: Mon Feb 03, 2003 10:56 am

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Post by Dan » Thu May 16, 2019 3:22 pm

We have made the necessary changes. The fix will be available in oXygen/Chemistry 21.1.

Thank you for reporting this issue, the page layout has improved!

Many regards,
Dan

chrispitude
Posts: 57
Joined: Thu May 02, 2019 2:32 pm

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Post by chrispitude » Fri May 17, 2019 3:49 am

Thanks Dan. We're one step closer to the commercial processors. :)

Post Reply