Skip to content

TextStyle vertical alignment map is wrong #112

@sasensi

Description

@sasensi

Hi, by working with your library, I noticed that the values it is returning for text vertical alignment are sometimes wrong.
I think that center and bottom are inverted.

/**
* Maps vertical alignment int enums to human-readable strings
* @example
* verticalAlignmentMap.top // => 0
*/
const verticalAlignmentMap = {
top: 0,
bottom: 1,
center: 2,
};

From what I observe when manually setting the values from Sketch, center is 1 and bottom is 2.
Here is a Sketch file demonstrating this: vertical-alignment.zip

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