Commit e1d0a50
committed
fix(text): paragraph_gap ignored in non-scrollable render path
All blocks were given is_last=true via a shared NodeRenderOptions,
causing every block's margin-bottom to resolve to rems(0). Paragraph
spacing set via TextViewStyle::paragraph_gap had no visible effect.
Mirror the virtualized-list path: compute is_last per block so only
the final block gets zero bottom spacing.
Signed-off-by: Sven Kanoldt <sven@d34dl0ck.me>1 parent 023f2e8 commit e1d0a50
1 file changed
+17
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 60 | | |
| 61 | + | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
69 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
| |||
0 commit comments