Skip to content

Conversation

@moffatman
Copy link
Contributor

@moffatman moffatman commented Feb 6, 2022

CupertinoContextMenu does not appear in the right position if there is a Transform.scale at some point in its ancestors.

WidgetController also didn't respect Transform.scale properly, so when adding a test for this fix some other tests needed to be updated to pass.

Fixes #102061

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard bot added a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Feb 6, 2022
@moffatman moffatman force-pushed the contextmenu branch 2 times, most recently from b13dd78 to 138c186 Compare February 7, 2022 21:05
@guidezpl
Copy link
Member

guidezpl commented May 2, 2022

Reverted, see #102938

moffatman added a commit to moffatman/flutter that referenced this pull request May 2, 2022
guidezpl pushed a commit that referenced this pull request May 4, 2022
…102943)

* Fix position of CupertinoContextMenu within Transform.scale (#97896)

* Fix after rebase
egramond pushed a commit to egramond/flutter that referenced this pull request May 5, 2022
egramond pushed a commit to egramond/flutter that referenced this pull request May 5, 2022
egramond pushed a commit to egramond/flutter that referenced this pull request May 5, 2022
…lutter#102943)

* Fix position of CupertinoContextMenu within Transform.scale (flutter#97896)

* Fix after rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CupertinoContextMenu animation is the wrong size when within Transform.scale

2 participants