Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix bug that caused fields in the flyout to use the main workspace's scale. #8607

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Oct 1, 2024

The basics

The details

Resolves

Fixes #8596

Proposed Changes

This PR introduces a new WorkspaceSvg.getAbsoluteScale() method that returns the absolute scale of a workspace, taking into account whether it is in a flyout, nested in one or more parent workspaces, mutator editors, etc. Workspace scaling is somewhat counterintuitive in that workspaces that are children of one another have multiplicative scaling, because scaling is achieved through transforms and those apply to child elements and compound.

The PR also updates field editors, which are visually associated with a particular workspace but live at the top of the DOM, to use the absolute scale of their visually-associated workspace.

@gonfunko gonfunko requested a review from a team as a code owner October 1, 2024 17:44
@github-actions github-actions bot added the PR: fix Fixes a bug label Oct 1, 2024
@gonfunko gonfunko merged commit e5c1a89 into google:rc/v12.0.0 Oct 2, 2024
7 checks passed
@gonfunko gonfunko deleted the field-scaling branch October 2, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants