angular / angular/components

MatDrawerContainer opened and mode="side" doesn't work as expected inside a MatTabGroup

オープン
#16,920 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: material/sidenav P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### Description

If we have a MatDrawerContainer with initial state opened and mode="side"or mode="push" in a tab that is not visible, when we go to the tab, the MatDrawerContent is not correctly shrinked.

#### Reproduction

StackBlitz: https://stackblitz.com/edit/angular-9hnnl8

Steps: -Just switch to tabs 2 or 3.

#### Expected Behavior

I expect the drawer content to shrink if the drawer is opened (as it happens normally)

#### Actual Behavior

The MatDrawerContent of the not selected tabs is not correctly shrinked.

#### Environment

- Angular:
- CDK/Material:
- Browser(s): Chrome
- Operating System: Windows

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされた StackBlitz の再現手順から始め、タブ 2 と 3 が表示されるときの MatDrawerContainer と MatTabGroup の相互作用を調査してください。side モードと push モードで最初から開いている drawer を確認し、タブの切り替え後に MatDrawerContent が正しく縮小されることを検証してください。両方のタブでコンテンツが期待されるサイズになれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。