Markomar
Markomar

Reputation: 163

Angular Flex Layout gap changing

I`ve got a problem with fxLayoutGap. When I dynamically change document direction, gap`s margins didn`t changes. Can I fix this, or this haven`t solution?

stackblitz: https://stackblitz.com/edit/angular-yjuyuv

Upvotes: 1

Views: 608

Answers (1)

Don Tomato
Don Tomato

Reputation: 3519

The fxLayoutGap just adds margin-bottom or margin-right style attributes, depending on fxLayout value. You need to change a style attribute dynamically also, or, that is much better, take another solution.

Upvotes: 1

Related Questions