File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,17 @@ md-tab-body {
38
38
@include md-fill ;
39
39
display : block ;
40
40
overflow : hidden ;
41
+
41
42
& .md-tab-body-active {
42
43
position : relative ;
43
44
overflow-x : hidden ;
44
45
overflow-y : auto ;
45
46
z-index : 1 ;
46
47
flex-grow : 1 ;
47
48
}
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 ;
52
52
}
53
53
}
54
54
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ export class MdTabChangeEvent {
48
48
selector : 'md-tab-group' ,
49
49
templateUrl : 'tab-group.html' ,
50
50
styleUrls : [ 'tab-group.css' ] ,
51
+ host : {
52
+ '[class.md-tab-group-dynamic-height]' : '_dynamicHeight'
53
+ }
51
54
} )
52
55
export class MdTabGroup {
53
56
@ContentChildren ( MdTab ) _tabs : QueryList < MdTab > ;
@@ -65,7 +68,7 @@ export class MdTabGroup {
65
68
66
69
/** Whether the tab group should grow to the size of the active tab */
67
70
private _dynamicHeight : boolean = false ;
68
- @Input ( 'mdDynamicHeight' ) set dynamicHeight ( value : boolean ) {
71
+ @Input ( ) set dynamicHeight ( value : boolean ) {
69
72
this . _dynamicHeight = coerceBooleanProperty ( value ) ;
70
73
}
71
74
You can’t perform that action at this time.
0 commit comments