Commit 3e47e44
committed
[FIX] grid_renderer_store: keep wrapping width with explicit align
Since PR#8004 ([FIX] Dynamic pivot: header alignment), width-aware
formatting is disabled on explicitly aligned cells to preserve the pivot
header alignment fix.
The renderer was reusing that same width to split wrapped content, so
cells with `wrapping: "wrap"` and an explicit horizontal alignment were
still getting the correct row height, but their text was rendered as a
single clipped line.
This commit separates the formatting width from the wrapping width:
- keep `formatWidth` disabled for explicitly aligned cells
- always use the real cell width to split wrapped text
closes #8216
Task: 6032407
X-original-commit: c39fdd0
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Signed-off-by: Dhrutik Patel (dhrp) <dhrp@odoo.com>1 parent ae7001a commit 3e47e44
File tree
3 files changed
+28
-5
lines changed- packages/o-spreadsheet-engine/src/plugins/ui_feature
- src/stores
- tests/renderer
3 files changed
+28
-5
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
170 | | - | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
746 | | - | |
747 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
748 | 752 | | |
749 | 753 | | |
750 | 754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
1979 | 1996 | | |
1980 | 1997 | | |
1981 | 1998 | | |
| |||
0 commit comments