odoo/o-spreadsheet#7404

Created by Ronakkumar Mukeshbhai Bharadiya (rmbh)

Blocked

label
odoo:saas-18.4-fix-dashboard-gray-background-rmbh
head
d5258079a32295ea0aabc3bcf38f4c9834f6f024
odoo/o-spreadsheet
saas-18.4 #7404 missing r+
19.0
master

[FIX] dashboard: properly handle grid resize in dashboard mode

Description:

Current behavior before PR:
- The canvas size was computed from the grid, which caused visible white margins
after a snappy resize (commit 3c8df4b9).
- Some unused props were being passed, creating unnecessary code clutter.

Desired behavior after PR is merged:
- The dashboard canvas size is now computed from the gridRef, ensuring only the
visible parts are displayed and avoiding redundant canvas computations.

Task: 5223156

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