angular - Consistent Height on Angular material tabs
问题描述
Scenario:
I have a angular material tabs with two tab inside. Each tab has different height. I need to set the overall height of the tab with the highest height out of the two tabs.
Issue:
The height is not consistent.
How to make the height of the second tab same as first one which is always dynamic?
Sample Code that I have used it in my project:
<mat-tab-group dynamicHeight>
<mat-tab label="Short tab">
<div class="example-small-box mat-elevation-z4">
Small content
</div>
</mat-tab>
<mat-tab label="Long tab">
<div class="example-large-box mat-elevation-z4">
Large content
</div>
</mat-tab>
</mat-tab-group>
解决方案
推荐阅读
- swift - 如何让 Firestore 数据显示在标签中
- python - Python请求未返回整页内容
- java - 如何在 Apache Tomcat 8/9 中设置 HTTP Expect-CT 标头?
- sql - SQL 窗口函数以每日级别计算不同的月份日期
- reactjs - 我正在尝试将函数从 app.js 传递到详细信息屏幕。但我不断收到此错误(在导航中发现了不可序列化的值)
- java - 如何使用我的密钥使用 javax.crypto.Cipher 进行加密?
- background - 渐变透明PNG
- kubernetes - minikube apiserver.service-node-port-range 不喜欢逗号分隔的端口列表
- makefile - GN Build 添加具有 makefile 的子目录
- swift - 无法在 Apple Silicon (M1) 上的 SceneKit 中将 AVCaptureVideoPreviewLayer 设置为漫反射内容