Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

tabs: with "md-center-tabs" has layout issues #11566

Closed
GulajavaMinistudio/material
#98

Description

@RostYanevych

Bug, enhancement request, or proposal:

md-tabs with md-center-tabs="true" does not show tabs at all. It's easy to reproduce on md-tabs demo by just adding md-center-tabs="true" to <md-tabs> tag.

CodePen and steps to reproduce the issue:

https://codepen.io/anon/pen/vvmQPg

Detailed Reproduction Steps:

  1. Use the markup
<md-tabs md-dynamic-height="" md-border-bottom="" md-center-tabs="true">...

What is the expected behavior?

tabs are shown centered

What is the current behavior?

tabs are not shown at all. In some cases they are shown on the right side of container

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.7.5
  • AngularJS Material: 1.1.11
  • OS: Win 7 x64
  • Browsers: Firefox, IE-11

Is there anything else we should know? Stack Traces, Screenshots, etc.

It's working well in angular-material version 1.1.10

Activity

  1. changed the title [-]<md-tabs> with "md-center-tabs" has layout issues[/-] [+]tabs: with "md-center-tabs" has layout issues[/+] on Dec 26, 2018
  2. self-assigned this
    on Dec 26, 2018
  3. added
    needs: investigation
    severity: regression
    on Dec 26, 2018
  4. added this to the 1.1.12 milestone on Dec 26, 2018
  5. added
    P1: urgent
    on Dec 26, 2018
  6. Splaktar commented on Dec 26, 2018

    @Splaktar
    Contributor

    I can reproduce this in Chrome as well. I made some minor tweaks to the CodePen. If you click on the tabs header, the tabs appear, but that should not be required.

    On Chrome and Safari, when the tabs display, they are in the center. But on Firefox the tabs are on the right side and some are not in the viewport:
    screen shot 2018-12-26 at 2 35 13 pm

  7. Splaktar commented on Dec 26, 2018

    @Splaktar
    Contributor

    This is related to the last iteration of the fix for IE11 pagination where tabs always showed up as truncated (I.e. "Ta..."). This fix was to resolve a regression caused by v1.1.2.

  8. added a commit that references this issue on Dec 26, 2018
    87e3b9c
  9. added
    has: Pull Request
    and removed
    needs: investigation
    on Dec 27, 2018
  10. added a commit that references this issue on Jan 3, 2019
    a49043d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1: urgenthas: Pull Requestresolution: fixedseverity: regressiontype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions