Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Padding does not round-trip in runtime styling properties #6065

Closed

Description

@1ec5

In the style specification, icon-text-fit-padding is defined as going in clockwise order (top, right, bottom, left). By contrast, NSEdgeInsets and UIEdgeInsets go in counterclockwise order (top, left, bottom, right). We’re currently representing padding as an NSArray but plan to switch to an NSValue representing an NSEdgeInsets or UIEdgeInsets (#5947).

When we convert an std::array<4> into an NSArray, we keep the edges in clockwise order. But when we convert an NSArray back into std::array<4>, we go in counterclockwise order instead. We should stick to counterclockwise order in both cases for consistency.

/cc @frederoni

Activity

  1. added
    iOS
    macOS
    on Aug 18, 2016
  2. added this to the ios-v3.4.0 milestone on Aug 18, 2016
  3. 1ec5 commented on Aug 18, 2016

    @1ec5
    ContributorAuthor

    Unfortunately, the documentation coming from the runtime styling API states that the edges go in clockwise order. We’ll need to override that in #5954.

  4. self-assigned this
    on Aug 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugiOSmacOSruntime styling

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions