material icon indicating copy to clipboard operation
material copied to clipboard

md-select opening arrow is not at the "end" of the select area

Open bOOm-X opened this issue 11 years ago • 10 comments

The opening arrow of the md-select is not correctly placed. image

Adding a flex attribute to the span included in the md-select-label fix this issue: image However, I am not sure that it is the appropriate fix.

Thx

bOOm-X avatar Mar 04 '15 10:03 bOOm-X

+1

myagoo avatar Mar 04 '15 10:03 myagoo

+1

pk-rawat avatar Mar 04 '15 11:03 pk-rawat

+1

adonix avatar Mar 04 '15 15:03 adonix

+1

dsc8x avatar Mar 05 '15 23:03 dsc8x

In 0.8.2 it was on the end but 0.8.3 broke it. I assume a flex or layout attribute got removed.

epelc avatar Mar 06 '15 15:03 epelc

This looks fixed now. Let us know if you still see the issue! Assign to User select demo

marcysutton avatar Apr 01 '15 00:04 marcysutton

This problem still occurs here. I'm having to use the fix that bOOm-X had mentioned. My code is:

<md-input-container flex-sm layout-padding>
    <label>external_label_here</label>
    <md-select ng-model="model_here">
        <md-select-label><span flex>{{ model_item_label_here }}</span></md-select-label>
    </md-select>
</md-input-container>

Any idea?

chrsp avatar May 12 '15 22:05 chrsp

Which browser? Can you create a Codepen with your code to show it actually failing? The <span flex> element shouldn't be necessary. The docs site currently shows the arrow aligned correctly.

marcysutton avatar May 12 '15 22:05 marcysutton

The browser is Chrome (ver. 42) and the problem can be saw here: http://codepen.io/chr0x/pen/bdppww

I updated my angular-material from version 0.8.3 to 0.9.0 and the problem didn't occured (sadly the version 0.9.0 has broken my page layout, so I can't migrate now).

@marcysutton , the test you made was in version 0.8.3? As @epelc suggested, I think it is a bug from version 0.8.3.

chrsp avatar May 13 '15 02:05 chrsp

@chr0x It is fixed in 0.9.0 and I'd suggest updating along with taking the time to fix your layout. I've been using angular-material for a while now(since around 0.5) and I find it best to fix whatever issues you have with every release rather then let it grow into a bigger problem. As unless it's a bug it's probably going to stay that way for a while.

Also if you do want to stick with 0.8.3 you can add some flex styles to one of the spans within the md-select template.

epelc avatar May 13 '15 13:05 epelc