Limit application of offset values to avoid overlapping borders.

They show up when exporting to PDF.  It's quite ugly.

Change-Id: Ib1efb68d9481dca06fafe1aab293dac5aa54e8ea