Skip to content

Max height should be an integer number of lines #32

@collinjackson

Description

@collinjackson

You can have a line be partially visible if you're overflowing the container.

This video is based on the demo code in https://github.com/indjec/native-text-field

Video.7.mov

It seems to be some issue with the computation of _maxHeight.

In my testing, adding 13 to the value of maxLineHeight helped. Here's a code sample:

https://github.com/collinjackson/flutter-native-text-input/tree/padding-fix

After the change:

Screen.Recording.2022-03-22.at.11.59.49.AM.mov

However, there are still problems if text overflows a line, as shown here:

Video.13.mov

Related StackOverflow question

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions