material
material copied to clipboard
Label and Icon are not center in Menu-Item (Windows IE11)
Actual Behavior:
What is the issue? *In IE 11.0.096 - AM - 1.1.0-rc.5 - The<p>&<md-icon>are not centered in the<md-button>.What is the expected behavior?The<p>and<md-icon>should be centered in the<md-button>in the menu-itemDetails:Look https://material.angularjs.org/latest/demo/menu - and test the position modes examples.
Angular Versions: *
Angular Version:1.5.7Angular Material Version:1.1.0-rc.5
Additional Information:
Browser Type: *IE 11Browser Version: *IE 11.0.096OS: *Windows.
Are you referring to this?

Yes - I have temp fix for now.
I put layout-fill attribute on the <div>
and added this to my component css
md-menu-item > .md-button p {
text-align: left; // for IE
line-height: 48px; // for IE
}
<md-menu-item ng-repeat="item in [1, 2, 3]">
<md-button ng-click="ctrl.announceClick($index)">
<div layout-fill layout="row" flex="">
<p flex="">Option {{item}}</p>
<md-icon md-menu-align-target="" md-svg-icon="call:portable-wifi-off" style="margin: auto 3px auto 0;"></md-icon>
</div>
</md-button>
</md-menu-item>
Yep - It LGTM in master. Thank you for looking into that.