Skip to content

Commit ec5cbb1

Browse files
committed
Fix tabs CSS issue and switch mdDynamicHeight to dynamicHeight.
1 parent 7687114 commit ec5cbb1

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/lib/tabs/tab-group.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ md-tab-body {
3838
@include md-fill;
3939
display: block;
4040
overflow: hidden;
41+
4142
&.md-tab-body-active {
4243
position: relative;
4344
overflow-x: hidden;
4445
overflow-y: auto;
4546
z-index: 1;
4647
flex-grow: 1;
4748
}
48-
:host[mdDynamicHeight], :host[md-dynamic-height] {
49-
&.md-tab-body-active {
50-
overflow-y: hidden;
51-
}
49+
50+
:host.md-tab-group-dynamic-height &.md-tab-body-active {
51+
overflow-y: hidden;
5252
}
5353
}
5454

src/lib/tabs/tab-group.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ export class MdTabChangeEvent {
4848
selector: 'md-tab-group',
4949
templateUrl: 'tab-group.html',
5050
styleUrls: ['tab-group.css'],
51+
host: {
52+
'[class.md-tab-group-dynamic-height]': '_dynamicHeight'
53+
}
5154
})
5255
export class MdTabGroup {
5356
@ContentChildren(MdTab) _tabs: QueryList<MdTab>;
@@ -65,7 +68,7 @@ export class MdTabGroup {
6568

6669
/** Whether the tab group should grow to the size of the active tab */
6770
private _dynamicHeight: boolean = false;
68-
@Input('mdDynamicHeight') set dynamicHeight(value: boolean) {
71+
@Input() set dynamicHeight(value: boolean) {
6972
this._dynamicHeight = coerceBooleanProperty(value);
7073
}
7174

0 commit comments

Comments
 (0)