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

Conversation

Splaktar
Copy link
Contributor

PR Checklist

Please check that your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added or this is not a bug fix / enhancement
  • Docs have been added, updated, or were not required

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Enhancement
[ ] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

md-center-tabs causes constant 30-50% CPU usage due to indefinite execution of updateInkBarStyles();

Issue Number:
Fixes #9690. Fixes #6375.

What is the new behavior?

  • make updateInkBarStyles() a noop if md-no-ink-bar is set
  • remove md-no-ink docs as the feature does not exist
  • clean up md-tab docs
  • add JSDoc and improve comments in TabsController
  • add TODOs for min/max widths that no longer match the latest MD spec
  • update URLs to MD spec

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

make updateInkBarStyles() a noop if md-no-ink-bar is set
remove md-no-ink docs as the feature does not exist
clean up md-tab docs
add JSDoc and improve comments in TabsController
add TODOs for min/max widths that no longer match the latest MD spec
update URLs to MD spec

Fixes #9690. Fixes #6375.
@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Jul 20, 2018
@Splaktar Splaktar added this to the 1.1.11 milestone Jul 20, 2018
@Splaktar Splaktar added pr: merge ready This PR is ready for a caretaker to review type: performance This issue is related to performance severity: performance This issue causes a significant performance degradation g3: reported The issue was reported by an internal or external product team. P1: urgent Urgent issues that should be addressed in the next minor or patch release. labels Jul 20, 2018
@mmalerba mmalerba merged commit 7fdf9da into master Jul 29, 2018
@Splaktar Splaktar assigned mmalerba and unassigned josephperrott Jul 30, 2018
@Splaktar Splaktar deleted the fixCenterTabsPerf branch July 30, 2018 06:57
Splaktar added a commit that referenced this pull request Jul 31, 2018
<!-- 
Filling out this template is required! Do not delete it when submitting a Pull Request! Without this information, your Pull Request may be auto-closed.
-->
## PR Checklist
Please check that your PR fulfills the following requirements:
- [x] The commit message follows [our guidelines](https://github.com/angular/material/blob/master/.github/CONTRIBUTING.md#-commit-message-format)
- [ ] Tests for the changes have been added or this is not a bug fix / enhancement
- [x] Docs have been added, updated, or were not required

## PR Type
What kind of change does this PR introduce?
<!-- Please check the one that applies to this PR using "x". -->
```
[x] Bugfix
[ ] Enhancement
[ ] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:
```

## What is the current behavior?
`md-center-tabs` causes constant 30-50% CPU usage due to indefinite execution of `updateInkBarStyles()`;

<!-- Please describe the current behavior that you are modifying and link to one or more relevant issues. -->
Issue Number: 
Fixes #9690. Fixes #6375.

## What is the new behavior?

- make updateInkBarStyles() a noop if md-no-ink-bar is set
- remove md-no-ink docs as the feature does not exist
- clean up md-tab docs
- add JSDoc and improve comments in TabsController
- add TODOs for min/max widths that no longer match the latest MD spec
- update URLs to MD spec

## Does this PR introduce a breaking change?
```
[ ] Yes
[x] No
```
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
<!-- Note that breaking changes are highly unlikely to get merged to master unless the validation is clear and the use case is critical. -->

## Other information
Splaktar added a commit that referenced this pull request Aug 2, 2018
<!-- 
Filling out this template is required! Do not delete it when submitting a Pull Request! Without this information, your Pull Request may be auto-closed.
-->
## PR Checklist
Please check that your PR fulfills the following requirements:
- [x] The commit message follows [our guidelines](https://github.com/angular/material/blob/master/.github/CONTRIBUTING.md#-commit-message-format)
- [ ] Tests for the changes have been added or this is not a bug fix / enhancement
- [x] Docs have been added, updated, or were not required

## PR Type
What kind of change does this PR introduce?
<!-- Please check the one that applies to this PR using "x". -->
```
[x] Bugfix
[ ] Enhancement
[ ] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:
```

## What is the current behavior?
`md-center-tabs` causes constant 30-50% CPU usage due to indefinite execution of `updateInkBarStyles()`;

<!-- Please describe the current behavior that you are modifying and link to one or more relevant issues. -->
Issue Number: 
Fixes #9690. Fixes #6375.

## What is the new behavior?

- make updateInkBarStyles() a noop if md-no-ink-bar is set
- remove md-no-ink docs as the feature does not exist
- clean up md-tab docs
- add JSDoc and improve comments in TabsController
- add TODOs for min/max widths that no longer match the latest MD spec
- update URLs to MD spec

## Does this PR introduce a breaking change?
```
[ ] Yes
[x] No
```
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
<!-- Note that breaking changes are highly unlikely to get merged to master unless the validation is clear and the use case is critical. -->

## Other information
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ g3: reported The issue was reported by an internal or external product team. P1: urgent Urgent issues that should be addressed in the next minor or patch release. pr: merge ready This PR is ready for a caretaker to review severity: performance This issue causes a significant performance degradation type: performance This issue is related to performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tabs: high cpu usage with certain styles and tab properties applied tabs: infinite loop when using md-center-tabs
4 participants