Search code examples
angularangular-flex-layout

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


Solution

  • 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.