This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fxLayoutGap): correctly handle lack of fallback value (#1037)
In most directives, style generation and removal happens in a contained cycle: styles are generated, cached, and then removed when no longer needed. This is facilitated by caching the results of the `StyleBuilder`s for each directive in a local object on the directive, and then removing those styles when called. In the case of `fxLayoutGap`, most of the style generation is applied to the children, and so in most cases just removing the parent styles is insufficient, and in other cases, just ineffective (because no parent styles are actually generated). To fix this, we override the default style clearing method, and replace it with one that actually removes the child styles (and the parent styles if any are present). Fixes #1011
- Loading branch information
1 parent
c23621c
commit ce9b989
Showing
2 changed files
with
64 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters