[Tabs] Tab label not fully shown when added past overflow
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
Tab is selected after being added to mat-tab-group and is in full view.
#### What is the current behavior?
Tab is selected and is hidden behind the paginators.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-c9hsyv
In the stackblitz above, add tabs until the paginator is shown. The tab will be partial hidden by the paginator.

#### What is the use-case or motivation for changing an existing behavior?
Navigating the user to the tab they just opened.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: any
Material: 5.0.0
OS: any
TypeScript: 2.4.2
Browsers: any
#### Is there anything else we should know?
A related issue which can also be seen in the stackbliz provided, is that the transform of the bar is not correctly updating when removing tabs. Steps to reproduce: Add 4(or enough tabs to show pagination) tabs (pagination will be shown and last tab will be selected).
Remove the third tab by clicking the X on the label. Pagination is shown until clicking on the label. It then updates and removes the pagination controls since the content can fit.


Both issues seem to be related to the animation of the inkbar. (ink-bar.ts line 35) Performing the left calculation in the animation frame plus the delay of the actual animation happens after all the calculations to show/hide the paginator controls.
コントリビューションガイド
調査の方向性
リンク先の StackBlitz でタブのオーバーフローとタブ削除のケースを再現し、その後、35 行目付近の ink-bar.ts とタブのページネーションの動作を調査してください。新しく追加された選択中のタブが完全に表示されること、およびタブを削除すると追加のクリックなしでページネーターが更新されることを確認してください。関連するテストのエントリーポイントが見つかった場合は、両方の動作を回帰テストでカバーしてください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100