This repository was archived by the owner on Jan 6, 2025. It is now read-only.
fxLayoutGap should consider hidden elements (fixed for fxHide but not when using css display: none
)
#1148
Labels
Bug Report
What is the expected behavior?
fxLayoutGap should consider hidden elements. That means that no gap should be added between empty elements. It works when elements are hidden with fxHide, but it doesn't works when element are hidden with css
display: none
What is the current behavior?
When a child element is hidden by css
display: none
, there is still a gap added.What are the steps to reproduce?
https://stackblitz.com/edit/angular-fxhidegap-jskf7r
You can have a look at the working version with fxHide here:
https://stackblitz.com/edit/angular-fxhidegap
What is the use-case or motivation for changing an existing behavior?
The existing behavior can be considerated as a "bug".
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
I wanted to add this to this existing issue, but it's closed by the new smart bot ^^ :
#136
Another thing, I think that the gap should not either be added depending on the descendant children visibility.
Example:
#divB
has no visible content, only one gap should be added between#divA
and#divD
because technically #divB is not visible. I know it's tricky because#divB
can be visible depending of his own css, maybemin-height
or something else. Maybe this point should not be considerated.The text was updated successfully, but these errors were encountered: