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

CssState.apply shouldn't reset all CSS properties before applying the current state · Issue #4715 · NativeScript/NativeScript · GitHub

CssState.apply shouldn't reset all CSS properties before applying the current state #4715

Description

resetCSSProperties(this.view.style);

Looks like when a new CSS state is applied, all CSS properties are reset and then set back again. This causes all of their change handlers to execute twice (once for the reset, and once again for the value being applied), which can have further implications (mainly on performance, as it can lead to the inner implementation being rerendered) even if the value isn't actually being changed at all.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL