This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
layout-align: Resetting to default when only one argument #5996
Comments
The issue is in var values = (value || "").replace(WHITESPACE, "-").split("-");
if ( values.length == 3 ) {
values = [ values[0]+"-"+values[1],values[2] ];
} The conditional check for I'll submit a PR. |
ngraef
added a commit
to ngraef/material
that referenced
this issue
Dec 1, 2015
* fix parsing issue to allow single value * add demo to test omitting second value fixes angular#5996
But the default cross-axis value is Or am I missing something? |
@julienpa Correct. There's just a parsing issue if the only value provided is |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
layout-align
no longer works with a single argument. It will replace it withlayout-align="start-stretch"
which drastically changes layouts.One Example
layout-align="space-around"
no longer works since 1.0.0-rc5. It is replaced withlayout-align="start-center"
when it should default the second argument tocenter
ie parselayout-align="space-around"
aslayout-align="space-around center"
.This also happens with the other single argument usecases like
layout-align="space-between"
. I'm suspectting the recent change to the defaultlayout-align
introduced this issue.The text was updated successfully, but these errors were encountered: