Skip to content

Cherry pick: iOS context menu positioning - #122907

Merged
itsjustkevin merged 2 commits into
flutter:flutter-3.7-candidate.1from
justinmc:cp-context-menu-positioning
Mar 18, 2023
Merged

itsjustkevin merged 2 commits into
flutter:flutter-3.7-candidate.1from
justinmc:cp-context-menu-positioning

Conversation

@justinmc

Copy link
Copy Markdown
Contributor

This cherry picks #119565, which was a small fix to the math that positions the iOS text selection toolbar when it's too close to the top of the screen. This should be a low-risk change.

Some changes in that PR were made to files that don't exist yet in this candidate branch, so I have ignored those changes.

Closes #121307

CC @limenote135

…r#119565)

* Fix anchorBelow calculation, and share toolbar padding constant

* Fix constant references in test

* Test below position when padding is not offset by content distance
@justinmc justinmc self-assigned this Mar 17, 2023
@flutter-dashboard flutter-dashboard Bot added a: text input Entering text in a text field or keyboard related problems p: cupertino_ui cupertino_ui package in flutter/packages p: material_ui material_ui package in flutter/packages framework flutter/packages/flutter repository. See also f: labels. labels Mar 17, 2023
@XilaiZhang

Copy link
Copy Markdown
Contributor

the codesign failures are expected, but I am not sure about the the linux docs_test failure

@XilaiZhang XilaiZhang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

would be great if can verify with @godofredoc on the linux doc test

@justinmc

Copy link
Copy Markdown
Contributor Author

Ah those docs errors are artifacts of the merge, those classes truly don't exist yet. I just removed them.

@itsjustkevin
itsjustkevin merged commit e1d9a6c into flutter:flutter-3.7-candidate.1 Mar 18, 2023
@justinmc
justinmc deleted the cp-context-menu-positioning branch March 20, 2023 20:42
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 22, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 23, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. p: cupertino_ui cupertino_ui package in flutter/packages p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants