Proper calculation of --margin-bottom in -e mode

This commit is contained in:
Dianne Skoll
2025-08-13 13:06:48 -04:00
parent a6c5c3cb90
commit 0e2d382b33

View File

@@ -517,7 +517,7 @@ sub render
}
}
if ($so_far > $settings->{height} - $settings->{margin_bottom}) {
if ($so_far > $settings->{height} - $settings->{margin_bottom} + 1) {
print STDERR "WARNING: overfull calendar box\n";
}
# The vertical lines
@@ -583,7 +583,7 @@ sub draw_row
$self->draw_day($cr, $settings, $so_far, $day, $col, $height);
}
return $so_far + $height + $settings->{border_size};
return $so_far + $height + $settings->{border_size} * 2;
}
=head2 col_box_coordinates($so_far, $col, $height, $settings)