Skip to content

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

@oblador

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions