Skip to content

Commit b5d5ffe

Browse files
authored
add @rowdepths to Alignment (#2536)
1 parent 0cb41c2 commit b5d5ffe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/LaTeXML/Core/Alignment.pm

+5
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ sub beAbsorbed {
311311
&{ $$self{openContainer} }($document, ($attr ? %$attr : ()),
312312
cwidth => $$self{cwidth}, cheight => $$self{cheight}, cdepth => $$self{cdepth},
313313
rowheights => $$self{rowheights},
314+
rowdepths => $$self{rowdepths},
314315
columnwidths => $$self{columnwidths},
315316
);
316317
foreach my $row (@rows) {
@@ -513,6 +514,7 @@ sub showSize {
513514
sub normalize_sum_sizes {
514515
my ($self) = @_;
515516
my @rowheights = ();
517+
my @rowdepths = ();
516518
my @colwidths = ();
517519
my @colrights = ();
518520
my @collefts = ();
@@ -564,6 +566,7 @@ sub normalize_sum_sizes {
564566
$$row{tpadding} = Dimension($rowt);
565567
$$row{bpadding} = Dimension($rowb);
566568
# NOTE: Should be storing column widths to; individually, as well as per-column!
569+
push(@rowdepths, $rowd);
567570
push(@rowheights, $rowh + $rowd); } # somehow our heights are way too short????
568571
## Now compute the positions
569572
my @rowpos = ();
@@ -588,8 +591,10 @@ sub normalize_sum_sizes {
588591
$$self{cdepth} = Dimension(0);
589592
@colwidths = map { Dimension($_); } @colwidths;
590593
@rowheights = map { Dimension($_); } @rowheights;
594+
@rowdepths = map { Dimension($_); } @rowdepths;
591595
$$self{columnwidths} = [@colwidths];
592596
$$self{rowheights} = [@rowheights];
597+
$$self{rowdepths} = [@rowdepths];
593598

594599
for (my $i = 0 ; $i < scalar(@rowheights) ; $i++) {
595600
my $row = $rows[$i];

0 commit comments

Comments
 (0)