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.

Offsets should be flipped vertically on macOS #6066

Closed

Description

@1ec5

In the style specification, the y value of a property like fill-translate is defined as the number of pixels from the top. By contrast, offsets are normally measured from the bottom of the screen or view on macOS. In order to simplify calculations, the value exposed to the developer via the runtime styling API should be consistent with the system’s standard origin. This will become especially important once we replace the NSArray representation with a CGVector (#5947).

/cc @frederoni

Activity

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

    @jfirebaugh
    Contributor

    Adding to the 3.4.0 milestone -- we need to implement this now or keep the existing behavior at least until a semver major version.

  4. 1ec5 commented on Sep 21, 2016

    @1ec5
    ContributorAuthor

    This only applies to macOS; the origin is at the top-left on iOS. The macOS SDK hasn't reached v1.0.0 yet, so I'm not terribly concerned about backwards compatibility there.

  5. removed this from the ios-v3.4.0 milestone on Sep 21, 2016
  6. boundsj commented on Sep 21, 2016

    @boundsj
    Contributor

    In that case, I'm going to remove the 3.4.0 milestone.

  7. added
    good first issue
    on Oct 18, 2016
  8. modified the milestone: macos-v0.3.0 on Jan 8, 2017
  9. self-assigned this
    on Jan 9, 2017
  10. 1ec5 commented on Jan 9, 2017

    @1ec5
    ContributorAuthor

    Fixed in #7636 on the release-ios-v3.4.0 branch.

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

Metadata

Metadata

Assignees

Labels

buggood first issuemacOSruntime styling

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions