Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: md-list-avatar aren't rendered correctly on Chrome #1403

Closed
ghost opened this issue Oct 2, 2016 · 1 comment · Fixed by #1464
Closed

bug: md-list-avatar aren't rendered correctly on Chrome #1403

ghost opened this issue Oct 2, 2016 · 1 comment · Fixed by #1464
Assignees
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@ghost
Copy link

ghost commented Oct 2, 2016

Bug, feature request, or proposal:

Bug on Chrome

What is the expected behavior?

md-list-avatar should be correctly displayed.

What is the current behavior?

md-list-avatar aren't correctly displayed on the initial render.

What are the steps to reproduce?

  1. Open Sidenav
  2. Select "Contact" Tab
  3. Avatars aren't correctly displayed
  4. Select "Menu" Tab
  5. Select "Contact" Tab
  6. Avatar are correctly displayed

avatarlist

<md-toolbar>
  <button md-icon-button (click)="sidenav.opened = !sidenav.opened">
  <md-icon alt="menu">menu</md-icon>
  </button> Shop
</md-toolbar>
<md-sidenav-layout>
  <md-sidenav #sidenav mode="over" >
    <md-tab-group>
      <md-tab>
        <template md-tab-label>
          Menu
        </template>
        <template md-tab-content>
        </template>
      </md-tab>
      <md-tab>
        <template md-tab-label>
          Contact
        </template>
        <template md-tab-content>
          <md-list>
            <md-list-item *ngFor="let x of [1,2,3,4,5,6,7,8]">
              <img md-list-avatar src="/assets/images/{{x}}.jpg" alt="">
              <h3 md-line> John Doe </h3>
            </md-list-item>
          </md-list>
        </template>
      </md-tab>
    </md-tab-group>
  </md-sidenav>
  <div [style.width]="'75vw'" [style.margin]="'auto'">
    <router-outlet></router-outlet>
  </div>
</md-sidenav-layout>

Which versions of Angular, Material, OS, browsers are affected?

angular-cli beta.16
angular material alpha.9-3
Chrome is affected, Firefox and Edge aren't.

@jelbourn jelbourn added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Oct 3, 2016
andrewmnlv added a commit to andrewmnlv/material2 that referenced this issue Oct 10, 2016
andrewmnlv added a commit to andrewmnlv/material2 that referenced this issue Oct 10, 2016
md-list-avatar aren't correctly displayed on the initial render
set flex-shrink to fix this behavior

Closes angular#1403
jelbourn pushed a commit that referenced this issue Oct 19, 2016
md-list-avatar aren't correctly displayed on the initial render
set flex-shrink to fix this behavior

Closes #1403
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants