Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fxLayoutAlign): add space-between and space-around options #845

Merged
merged 3 commits into from
Nov 13, 2018

Conversation

aleixsuau
Copy link
Contributor

@aleixsuau aleixsuau commented Sep 26, 2018

The actual implementation doesn't allow the 'space-between' and 'space-around' flex
align-content options (cross-axis). fxLayoutAlign should cover all of them.

Closes #841

Copy link
Member

@CaerusKaru CaerusKaru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still have to review this with @ThomasBurleson tomorrow, until then please fix the style issues. Thanks for the PR!

import { Platform } from '@angular/cdk/platform';
import { CommonModule } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { ComponentFixture, inject, TestBed } from '@angular/core/testing';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't refactor our stylings

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my VSCode refators stylings automatically.
Fixed and "git rebase master -i" and then "git push -f".

import {extendObject} from '../../utils/object-extend';
import {Layout, LayoutDirective} from '../layout/layout';
import {LAYOUT_VALUES, isFlowHorizontal} from '../../utils/layout-validator';
import { Directive, ElementRef, Input, OnChanges, OnDestroy, OnInit, Optional, Self, SimpleChanges } from '@angular/core';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here with styling

…tions in the cross-axis

The actual implementation doesn't allow the 'space-between' and 'space-around' flex
align-content options in the cross-axis. fxLayoutAlign should cover all of them.

This commit closes the issue angular#841
…tions in the cross-axis

The actual implementation doesn't allow the 'space-between' and 'space-around' flex
align-content options in the cross-axis. fxLayoutAlign should cover all of them.

This commit closes the issue angular#841
angular#841
…tions in the cross-axis

Styling refactor removed

This commit closes the issue angular#841
@CaerusKaru CaerusKaru added pr: lgtm This PR has been approved by the reviewer pr: blocked and removed pr: needs cleanup/tests labels Sep 27, 2018
@CaerusKaru
Copy link
Member

Marking as blocked until I discuss with @ThomasBurleson, but otherwise looks good!

@CaerusKaru CaerusKaru changed the title fix (fxLayoutAlign): cover 'space-between'& 'space-around' options fix(fxLayoutAlign): add space-between and space-around options Oct 4, 2018
@CaerusKaru CaerusKaru merged commit 5e3ec0e into angular:master Nov 13, 2018
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes feature flexbox pr: lgtm This PR has been approved by the reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fxLayoutAlign doesn't work with space-around and space-between (cross-axis)
3 participants