odoo/o-spreadsheet#6671

Created by Ronakkumar Mukeshbhai Bharadiya (rmbh)
Merged at d1f3c7733aa7e3edbcd15c782ec2563ba3193173

Statuses:

label
odoo:17.0-fix-link-row-resize-rmbh
head
5942d7f33f85fef00a072177922bc6eb2b474f3c
merged
1 month ago by BI, Adrien Minne (adrm)
odoo/o-spreadsheet
17.0 #6671
18.0 #6724
saas-18.1 #6726
saas-18.2 #6727
saas-18.3 #6729
saas-18.4 #6731
master #6733

[FIX] header_size: resize row based on link label instead of full link

Description:

Before this commit:
- Row height was calculated using the full Markdown link (label + URL),
which could lead to incorrect row resizing when word wrap was enabled.

After this commit:
- Only the link label is used to compute row height,
resulting in accurate sizing.

Task: 4886598

review checklist

  • [ ] feature is organized in plugin, or UI components
  • [ ] support of duplicate sheet (deep copy)
  • [ ] in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • [ ] in model/UI: ranges are strings (to show the user)
  • [ ] undo-able commands (uses this.history.update)
  • [ ] multiuser-able commands (has inverse commands and transformations where needed)
  • [ ] new/updated/removed commands are documented
  • [ ] exportable in excel
  • [ ] translations (_t("qmsdf %s", abc))
  • [ ] unit tested
  • [ ] clean commented code
  • [ ] track breaking changes
  • [ ] doc is rebuild (npm run doc)
  • [ ] status is correct in Odoo