Skip to content

Commit

Permalink
Merge branch 'issue179' into hook
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjr committed Dec 1, 2024
2 parents c7862e2 + 8eaa415 commit 2b6a46e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tabularray.sty
Original file line number Diff line number Diff line change
Expand Up @@ -3766,7 +3766,7 @@
{
\hbox_set:Nn \l__tblr_measured_cell_box
{
\begin{varwidth}{\paperwidth}
\begin{varwidth}[b]{\paperwidth}
\TblrParboxRestore
\cs:w __tblr_halign_command_ \g__tblr_cell_halign_tl : \cs_end:
\__tblr_leave_vmode:
Expand All @@ -3775,6 +3775,8 @@
\end{varwidth}
}
\tl_set:Nx \l__tblr_w_tl { \dim_eval:n { \box_wd:N \l__tblr_measured_cell_box } }
\vbox_set:Nn \l__tblr_measured_cell_box
{ \box_use:N \l__tblr_measured_cell_box }
}
%% Measure cell width only and build it later when hook library is not loaded
Expand Down Expand Up @@ -3837,14 +3839,7 @@
\group_begin:
\box_if_empty:NTF \l__tblr_measured_cell_box
{ \vbox_set:Nn \l_tmpb_box { \__tblr_make_vcell_text:NN #1 #2 } }
{
\vbox_set:Nn \l_tmpb_box
{
\dim_set:Nn \tex_hsize:D { \l__tblr_w_tl }
\noindent
\hbox_unpack_drop:N \l__tblr_measured_cell_box
}
}
{ \box_set_eq:NN \l_tmpb_box \l__tblr_measured_cell_box }
\vbox_set_top:Nn \l_tmpa_box { \vbox_unpack:N \l_tmpb_box }
\__tblr_process_stretch:
\dim_gset:Nn \g__tblr_cell_wd_dim { \box_wd:N \l_tmpb_box }
Expand Down

0 comments on commit 2b6a46e

Please sign in to comment.