Skip to content

[TextInput] Padding in Text and TextInput renders slightly differently #1287

Description

@oblador

I'm trying to build a autogrowing TextInput and is using a shadow Text component to measure the text (I'm sure there's a better way, maybe expose NSString.boundingRectWithSize). However I noticed that the padding is slightly differently rendered on the two, it seems TextInput has an extra 2px (or 1pt?) horizontal padding causing the text to wrap differently.

padding: 0. TextInput first, Text last.
screendump

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions