Skip to content

[Tabs] Ink bar is not correctly aligned on init #3048

Closed
@VitalyVrublevskyy

Description

@VitalyVrublevskyy

Bug, feature request, or proposal:

Bug (Some different than #3044)

What is the expected behavior?

Highlighter [md-ink-bar] should invalidate position on init app

What is the current behavior?

Misaligned [md-ink-bar]. Please see attached image.

What are the steps to reproduce?

Case 1

  1. Open demo application from material2
  2. Navigate to tabs (Especially for Tab Nav Bar with routing example)
  3. Apply md-stretch-tabs directive for and apply styles for tab items
    [md-stretch-tabs] [md-tab-link] { flex-basis: 0; flex-grow: 1; }
  4. Try to expand / collapse application sidebar.

Case 2 (or just apply attached git patch. )

  1. Open demo application from material2
  2. Setup <md-sidenav mode="side" opened="true"> for root app container.
  3. Navigate to tabs (Especially for Tab Nav Bar with routing example)
  4. Apply md-stretch-tabs directive for and apply styles for tab items
    [md-stretch-tabs] [md-tab-link] { flex-basis: 0; flex-grow: 1; }
  5. Select not first tab
  6. Refresh page

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Patch: MD_TabBar_issue.patch.zip

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

Based on up to date sources of material2

Is there anything else we should know?

image

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions