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 772
Unexpected behaviour: offset is always horizontal #328
Labels
Milestone
Comments
@sasensi - This is a bug and will be addressed/fixe before Beta.9. Thank you. |
ThomasBurleson
added a commit
that referenced
this issue
Aug 7, 2017
`fxFlexOffset` assigns inline `margin-left` style for flow directions == 'row' [default]. If the parent flow direction == 'column', then a `margin-top` should be used. Subscriptions to an optional parent element LayoutDirective will trigger the fxFlexOffset to update the inline styles to match the current flow direction. Fixes #328.
ThomasBurleson
added a commit
that referenced
this issue
Aug 7, 2017
`fxFlexOffset` assigns inline `margin-left` style for flow directions == 'row' [default]. If the parent flow direction == 'column', then a `margin-top` should be used. Subscriptions to an optional parent element LayoutDirective will trigger the fxFlexOffset to update the inline styles to match the current flow direction. > Note: if `fxFlexOffset` is used with a parent flexbox styling, then a `display:flex; flex-direction:row;` will be auto assigned to the fxFlexOffset host element's parent. Fixes #328.
ThomasBurleson
added a commit
that referenced
this issue
Aug 7, 2017
`fxFlexOffset` assigns inline `margin-left` style for flow directions == 'row' [default]. If the parent flow direction == 'column', then a `margin-top` should be used. Subscriptions to an optional parent element LayoutDirective will trigger the fxFlexOffset to update the inline styles to match the current flow direction. > Note: if `fxFlexOffset` is used with a parent flexbox styling, then a `display:flex; flex-direction:row;` will be auto assigned to the fxFlexOffset host element's parent. Fixes #328.
ThomasBurleson
added a commit
that referenced
this issue
Aug 7, 2017
`fxFlexOffset` assigns inline `margin-left` style; assuming default flow directions == 'row'. If the parent flow direction == 'column', then a `margin-top` should be used. Also added a subscription to an optional parent element LayoutDirective; which will trigger the FlexOffsetDirective to update the inline styles to match the current flow direction. > Note: if `fxFlexOffset` is used with a parent flexbox styling, then a `display:flex; flex-direction:row;` will be auto assigned to the fxFlexOffset host element's parent. Fixes #328.
ThomasBurleson
added a commit
that referenced
this issue
Aug 7, 2017
`fxFlexOffset` assigns inline `margin-left` style; assuming default flow directions == 'row'. If the parent flow direction == 'column', then a `margin-top` should be used. Also added a subscription to an optional parent element LayoutDirective; which will trigger the FlexOffsetDirective to update the inline styles to match the current flow direction. > Note: if `fxFlexOffset` is used **without** a parent flexbox styling (set via css or directive), then a `display:flex; flex-direction:row;` will be auto assigned to the fxFlexOffset host element's parent. Fixes #328.
ThomasBurleson
added a commit
that referenced
this issue
Aug 8, 2017
`fxFlexOffset` assigns inline `margin-left` style; assuming default flow directions == 'row'. If the parent flow direction == 'column', then a `margin-top` should be used. Also added a subscription to an optional parent element LayoutDirective; which will trigger the FlexOffsetDirective to update the inline styles to match the current flow direction. > Note: if `fxFlexOffset` is used **without** a parent flexbox styling (set via css or directive), then a `display:flex; flex-direction:row;` will be auto assigned to the fxFlexOffset host element's parent. Fixes #328.
ThomasBurleson
added a commit
that referenced
this issue
Aug 8, 2017
`fxFlexOffset` assigns inline `margin-left` style; assuming default flow directions == 'row'. If the parent flow direction == 'column', then a `margin-top` should be used. Also added a subscription to an optional parent element LayoutDirective; which will trigger the FlexOffsetDirective to update the inline styles to match the current flow direction. > Note: if `fxFlexOffset` is used **without** a parent flexbox styling (set via css or directive), then a `display:flex; flex-direction:row;` will be auto assigned to the fxFlexOffset host element's parent. Fixes #328.
mmalerba
pushed a commit
that referenced
this issue
Aug 9, 2017
`fxFlexOffset` assigns inline `margin-left` style; assuming default flow directions == 'row'. If the parent flow direction == 'column', then a `margin-top` should be used. Also added a subscription to an optional parent element LayoutDirective; which will trigger the FlexOffsetDirective to update the inline styles to match the current flow direction. > Note: if `fxFlexOffset` is used **without** a parent flexbox styling (set via css or directive), then a `display:flex; flex-direction:row;` will be auto assigned to the fxFlexOffset host element's parent. Fixes #328.
With this changed, is there any elegant way of getting the margin-left behavior in a column-oriented layout other than resorting to style="margin-left: #px"? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I found an unexpected behaviour when you set fxFlexOffset in a
fxLayout="column"
child, it result in a margin-left added; instead of a margin-top which is what I was expecting.Demo here: https://plnkr.co/edit/PDOtQk?p=preview
Is it on purpose or a bug ? Thanks in advance.
The text was updated successfully, but these errors were encountered: