FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CSS scale breaks background properties on iOS · Issue #2911 · NativeScript/NativeScript · GitHub

CSS scale breaks background properties on iOS #2911

Description

Applying a scale transform to a button on iOS breaks background-repeat and background-position on iOS.

Using template-hello-world as a base.

main-page.xml

<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="onNavigatingTo">

  <StackLayout>
      <Button class="btn" />
      <Button class="btn btn-scaled" />
  </StackLayout>

</Page>

app.css

.btn {
    background-color: orange;
    background-image: url("res://play");
    background-position: center;
    background-repeat: no-repeat;
}

.btn-scaled {
    transform: scale(0.5, 0.5);
}

Tested with tns-core-modules 2.3.0 and 2.4.0-2016-10-10-4344

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL