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

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
chrispitude
Posts: 907
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 »

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: 907
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 »

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: 501
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 »

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

Many regards,
Dan
Dan
Posts: 501
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 »

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: 907
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 »

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: 501
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 »

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: 907
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 »

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