Repository navigation
CupertinoTextSelectionToolbar clips all buttons when one of them is too long #138177
Description
Activity
Investigating a little bit more, I discovered a variable called firstPageWidth and though it was a little suspicious. I tried removing it and letting each page in the layout calculate its own width, and it's working!
All the tests related to CupertinoTextSelectionToolbar passed.
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Nov 10, 2023 Reproducible using the code sample provided above.
In my testing, it seemed to happen when the long text was the second item. In other positions, the issue did not occur. See the recording below.
RPReplay_Final1699604884.MP4
flutter doctor -v
[!] Flutter (Channel stable, 3.13.9, on macOS 14.0 23A344 darwin-arm64, locale en-GB) • Flutter version 3.13.9 on channel stable at /Users/nexus/dev/sdks/flutter ! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutters/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter. Consider adding /Users/nexus/dev/sdks/flutter/bin to the front of your path. ! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutters/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutter. Consider adding /Users/nexus/dev/sdks/flutter/bin to the front of your path. • Upstream repository https://github.com/flutter/flutter.git • Framework revision d211f42860 (2 weeks ago), 2023-10-25 13:42:25 -0700 • Engine revision 0545f8705d • Dart version 3.1.5 • DevTools version 2.25.0 • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades. [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) • Android SDK at /Users/nexus/Library/Android/sdk • Platform android-33, build-tools 33.0.1 • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.0) • Xcode at /Applications/Xcode-15.0.0-Release.Candidate.app/Contents/Developer • Build 15A240d • CocoaPods version 1.13.0 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2022.3) • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) [✓] IntelliJ IDEA Ultimate Edition (version 2023.2.3) • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app • Flutter plugin version 76.0.4 • Dart plugin version 232.10072.19 [✓] VS Code (version 1.84.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.76.0 [✓] Connected device (3 available) • Nexus (mobile) • 00008020-001875E83A38002E • ios • iOS 17.1.1 21B91 • macOS (desktop) • macos • darwin-arm64 • macOS 14.0 23A344 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 119.0.6045.123 ! Error: Browsing on the local area network for Dean’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources • All expected network resources are available. ! Doctor found issues in 1 category.[✓] Flutter (Channel master, 3.17.0-5.0.pre.39, on macOS 14.0 23A344 darwin-arm64, locale en-GB) • Flutter version 3.17.0-5.0.pre.39 on channel master at /Users/nexus/dev/sdks/flutters • Upstream repository https://github.com/flutter/flutter.git • Framework revision d7bf0a8f3d (3 hours ago), 2023-11-10 01:00:32 -0500 • Engine revision b020893cba • Dart version 3.3.0 (build 3.3.0-113.0.dev) • DevTools version 2.30.0-dev.1 [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) • Android SDK at /Users/nexus/Library/Android/sdk • Platform android-33, build-tools 33.0.1 • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.0) • Xcode at /Applications/Xcode-15.0.0-Release.Candidate.app/Contents/Developer • Build 15A240d • CocoaPods version 1.13.0 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2022.3) • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) [✓] IntelliJ IDEA Ultimate Edition (version 2023.2.3) • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app • Flutter plugin version 76.0.4 • Dart plugin version 232.10072.19 [✓] VS Code (version 1.84.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.76.0 [✓] Connected device (3 available) • Nexus (mobile) • 00008020-001875E83A38002E • ios • iOS 17.1.1 21B91 • macOS (desktop) • macos • darwin-arm64 • macOS 14.0 23A344 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 119.0.6045.123 ! Error: Browsing on the local area network for Dean’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources • All expected network resources are available. • No issues found!- addedframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packageshas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-designOwned by Design Languages teamOwned by Design Languages teamfound in release: 3.13Found to occur in 3.13Found to occur in 3.13found in release: 3.17Found to occur in 3.17Found to occur in 3.17a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsand removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Nov 10, 2023 @danagbemava-nc - is this a regression?
- addedP2Important issues not at the top of the work listImportant issues not at the top of the work listtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
on Nov 15, 2023 Hi @HansMuller, this does not appear to be a regression.
I tested on 3.7.12, 3.10.6/7, 3.13.0 and it reproduced on all versions
@danagbemava-nc - Thanks for checking!
@LongCatIsLooong - even though this isn't a regression, it looks like a serious problem.Reacted by Daniel AgbemavaLooks like
UIEditMenudoes not limit the page width to that of the first page.- added a commit that references this issue
on Feb 2, 2024 @luccasclezar Does #138195 fix this issue? The title should also probably be renamed to 'CupertinoTextSelectionToolbar clips all buttons when one of them is too long'.
- changed the title
[-]CupertinoContextMenu clips all buttons when one of them is too long[/-][+]CupertinoTextSelectionToolbar clips all buttons when one of them is too long[/+]on Jul 17, 2024 @victorsanni Yes, it does. I thought this issue had been closed when the PR was merged, sorry.
- addedr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
on Jul 17, 2024 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Jul 31, 2024
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Is there an existing issue for this?
Steps to reproduce
I set the text in the code sample to be excessively long to be able to reproduce this on devices with the default font size, but this is a big issue for accessibility users that increase their system font size as the button text needs to be way shorter than this for the bug to happen.
Expected results
The second item should be the only one clipped.
Actual results
All items after the second are clipped.
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Screen.Recording.2023-11-09.at.17.45.13.mov
Logs
No response
Flutter Doctor output
Doctor output