components icon indicating copy to clipboard operation
components copied to clipboard

Input and select misaligned

Open henriqueweiand opened this issue 9 years ago • 9 comments

Bug, feature request, or proposal:

Bug

sem titulo

What is the expected behavior?

Alignment according to another field

What is the current behavior?

Misaligned

What are the steps to reproduce?

https://embed.plnkr.co/cqdmVrghMOpUOYESWySg/

Is there anything else we should know?

I'm building a layout according to the project https://github.com/EladBezalel/material2-start This uses:

: Host {    Display: flex;    Flex: 1; }

In your css, so when I started to use in my project I noticed a disagreement at the height of the fields as picture and plunker. I'm not sure if this is an expected behavior, or if the behavior of the select field should not be interfered with.

henriqueweiand avatar Jun 03 '17 13:06 henriqueweiand

Should be fixed by https://github.com/angular/material2/pull/4788, which was merged in yesterday.

crisbeto avatar Jun 03 '17 13:06 crisbeto

@crisbeto

Test with the most recent version that you commented that could have corrected and seems to me to remain the same ... see:

http://embed.plnkr.co/o077B6uEiiIgkC0S06dd/

print

henriqueweiand avatar Jun 04 '17 18:06 henriqueweiand

Seems like that Plunkr is empty. Can you post it again?

crisbeto avatar Jun 04 '17 18:06 crisbeto

@crisbeto , Sorry, continue again

http://embed.plnkr.co/DXq5ZNNyhtBeSrjayiC3/

henriqueweiand avatar Jun 04 '17 19:06 henriqueweiand

You can get them to (mostly) align if you add align-items: baseline to the container. It seems like our baseline is still ~1px off though @mmalerba.

crisbeto avatar Jun 04 '17 19:06 crisbeto

I just re-did the md-input-container to make all the spacing match the spec. We need to do a similar treatment for the md-select. Actually ideally we should refactor it so that the same CSS styles can be shared by the two components.

mmalerba avatar Jun 05 '17 00:06 mmalerba

This is still happening to me version: @angular/[email protected]

pbuhrmann avatar Aug 09 '17 20:08 pbuhrmann

see #2124

mmalerba avatar Aug 09 '17 21:08 mmalerba

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.