Skip to content

Conversation

@rrahir
Copy link
Collaborator

@rrahir rrahir commented Nov 7, 2025

Description:

description of this task, what is implemented and why it is implemented that way.

Task: 5232092

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

@robodoo
Copy link
Collaborator

robodoo commented Nov 7, 2025

Pull request status dashboard

@rrahir rrahir force-pushed the master-fix-safari-zoom-rar branch from 2a93e4d to 79690d4 Compare November 7, 2025 08:42
@rrahir rrahir mentioned this pull request Nov 7, 2025
14 tasks
@rrahir rrahir force-pushed the master-fix-safari-zoom-rar branch from 79690d4 to 4238f3e Compare November 7, 2025 13:57

const gridWidth =
this.spreadsheetRef.el?.querySelector(".o-grid")?.getBoundingClientRect().width || 0;
(this.spreadsheetRef.el?.getBoundingClientRect().width || 0) -
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a non negligeable chance that the o-row-group should be taken into account as well

The highlight component was not using the zoomedMouseEvent to compute
its starting position to move a highlight, which means the highlight
would 'jump' when trying to move it.

Task: 5232092
@rrahir rrahir force-pushed the master-fix-safari-zoom-rar branch from 4238f3e to b7186b2 Compare November 12, 2025 14:22
The new zoom feature relies on the zoom css property, however there is a
long standing bug in webkit (https://bugs.webkit.org/show_bug.cgi?id=77998)
that impacts the computation of `Element.getBoundingClientRect`.

This revision adds a check on safari browser to correct the boundingRect
at specific points (pretty much where we handle mouseEvents).

Task: 5232092
@rrahir rrahir force-pushed the master-fix-safari-zoom-rar branch from b7186b2 to f48fd94 Compare November 13, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants