flex-layout icon indicating copy to clipboard operation
flex-layout copied to clipboard

fxLayoutGap puts the gap on the wrong side when using row-reverse

Open adamdport opened this issue 9 years ago • 5 comments

<div fxLayout="row-reverse" fxLayoutGap="20px">
  <div>Right (margin is put on the right side of this<div>
  <div>Left<div>
</div>

Obviously fxLayoutGap should put the margin inbetween the divs, which switches when using row-reverse.

adamdport avatar Oct 11 '17 18:10 adamdport

The same problem with rtl direction.

yantrab avatar Oct 29 '17 07:10 yantrab

The same problem with colume-reverse and fxFlexOrder.

example using fxFlexOrder

<div fxLayout="column" fxLayoutGap=".5em">
    <div fxFlex="1 1 auto" fxFlexOrder="2">
      <p>Left, Down</p>
    </div>
    <div fxFlex="1 1 auto" fxFlexOrder="1">
      <p>Rigth, Up</p>
    </div>
  </div>

grapgrap avatar Dec 26 '17 09:12 grapgrap

For the record, as it currently stands, this is documented and expected behavior. From the docs:

fxLayoutGap does not respond to reveresed flow directions

That being said, I do believe it's behavior we should support, but perhaps not in the upcoming release.

CaerusKaru avatar Jan 20 '18 09:01 CaerusKaru

This will be partially fixed in #667, and has been patched for RTL behavior. I'll try and fold in a fix for standard fxLayoutGap as part of beta.14 instead of beta.15 (since it's more in line with that release)

CaerusKaru avatar Mar 16 '18 08:03 CaerusKaru

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.