gpt4 book ai didi

css - 当我在 Angular Material 的选项卡之间切换时,会显示滚动条吗?

转载 作者:行者123 更新时间:2023-12-05 09:16:52 24 4
gpt4 key购买 nike

<widget-shell [title]="data.title" (closeButtonClicked)="onCloseButtonClick($event)">
<mat-tab-group (selectedTabChange)="tabChange()">
<mat-tab label="Data">
<graph-bar *ngIf="graphSettings" [tabChanged]="tabChanged" [settings]="graphSettings.dataSeries"></graph-bar>
</mat-tab>
<mat-tab label="SMS">
<graph-bar *ngIf="graphSettings" [tabChanged]="tabChanged" [settings]="graphSettings.smsSeries"></graph-bar>
</mat-tab>
<mat-tab label="Voice">
<graph-bar *ngIf="graphSettings" [tabChanged]="tabChanged" [settings]="graphSettings.voiceSeries"></graph-bar>
</mat-tab>
</mat-tab-group>

In the CSS:

::ng-deep .mat-tab-body-content {
overflow: visible !important;
}

By using the above css solved the issue,but is there some other way that we can achieve the same without using !important

最佳答案

这里有一个更好的解决方案(在 v-7 上测试过):

<mat-tab-group [dynamicHeight]='true'>

关于css - 当我在 Angular Material 的选项卡之间切换时,会显示滚动条吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49527933/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com