angular-material-sidemenu
angular-material-sidemenu copied to clipboard
Fix md-sidemenu-button with md-icon aligned to right with angular.js 1.6.x
When testing md-sidemenu-button
with angular.js 1.6.x, if a md-icon
is present, the content
of the button is aligned to right.
It's a issue related to angular-material setting margin
for md-icon
to auto
.
But only with angular.js from 1.6.0, the md-icon
starts to take all the remaining space of the button, thus causing the content to be squashed to the right side.
It's kinda strange since angular.js shouldn't affect css.
Setting the margin-left
of md-icon
to 0 seems to fix the issue.