File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 2
2
@import ' default-theme' ;
3
3
4
4
$md-tab-bar-height : 48px !default ;
5
+ $md-tab-content-min-height : 200px !default ;
5
6
6
7
:host {
7
- display : block ;
8
+ display : flex ;
9
+ flex-direction : column ;
8
10
font-family : $md-font-family ;
11
+ min-height : $md-tab-bar-height + $md-tab-content-min-height ;
9
12
}
10
13
11
14
/* * The top section of the view; contains the tab labels */
@@ -15,6 +18,7 @@ $md-tab-bar-height: 48px !default;
15
18
display : flex ;
16
19
flex-direction : row ;
17
20
border-bottom : 1px solid md-color ($md-background , status-bar );
21
+ flex-shrink : 0 ;
18
22
}
19
23
20
24
/* * Wraps each tab label */
@@ -41,14 +45,18 @@ $md-tab-bar-height: 48px !default;
41
45
/* * The bottom section of the view; contains the tab bodies */
42
46
.md-tab-body-wrapper {
43
47
position : relative ;
44
- height : 200px ;
45
48
overflow : hidden ;
46
- padding : 12px ;
49
+ flex-grow : 1 ;
50
+ display : flex ;
47
51
}
48
52
49
53
/* * Wraps each tab body */
50
54
.md-tab-body {
51
55
display : none ;
56
+ overflow : auto ;
57
+ box-sizing : border-box ;
58
+ flex-grow : 1 ;
59
+ flex-shrink : 1 ;
52
60
& .md-active {
53
61
display : block ;
54
62
}
Original file line number Diff line number Diff line change 3
3
.md-tab-header {
4
4
background : #f9f9f9 ;
5
5
}
6
+ .md-tab-body {
7
+ padding : 12px ;
8
+ }
6
9
}
You can’t perform that action at this time.
0 commit comments