Sidenav: content area size not calculated properly with animation
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
The size of the content area is calculated correctly according to the width of the sidenav menu.
#### What is the current behavior?
The calculation is wrong. The margin-left value of the content area is inverted to the width defined in the animation.
#### What are the steps to reproduce?
https://stackblitz.com/edit/angular-etpys5
(to see the issue you have to click a few times on the expand button)
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
@angular/material@5.2.0
@angular/cdk@5.2.0
@angular/core@5.2.4
@angular/animations@5.2.4
コントリビューションガイド
調査の方向性
まず、リンクされた StackBlitz の例で Angular Material 5.2.0 の sidenav を使い、expand ボタンを繰り返しクリックして問題を再現します。sidenav のアニメーションとコンテンツ領域のマージン計算を追跡し、expand/collapse サイクルを繰り返した後もコンテンツの幅とマージンが正しいままであることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100