File tree 2 files changed +4
-20
lines changed
material.angular.io/src/app/pages/guide-list
2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 1
1
:host ,
2
2
.docs-guide {
3
- height : 100% ;
3
+ // Ensures that the footer is pushed to the bottom if the page is too short.
4
+ display : flex ;
5
+ flex-direction : column ;
6
+ flex-grow : 1 ;
4
7
}
5
8
6
9
.docs-guide-list {
Original file line number Diff line number Diff line change @@ -27,23 +27,4 @@ describe('GuideList', () => {
27
27
. length ;
28
28
expect ( totalLinks ) . toEqual ( totalItems ) ;
29
29
} ) ;
30
-
31
- it ( 'should set the footer below the bottom of the given view' , ( ) => {
32
- const viewHeight = 1200 ;
33
- const prevHeight = fixture . debugElement . styles [ 'height' ] ;
34
- fixture . debugElement . styles [ 'height' ] = `${ viewHeight } px` ;
35
- fixture . detectChanges ( ) ;
36
-
37
- const footer = fixture . nativeElement . querySelector ( 'app-footer' ) ;
38
- const main = fixture . nativeElement . querySelector ( 'main' ) ;
39
-
40
- expect ( main . getBoundingClientRect ( ) . height )
41
- . withContext ( 'main content should take up the full given height' )
42
- . toBe ( viewHeight ) ;
43
- expect ( main . getBoundingClientRect ( ) . height + footer . getBoundingClientRect ( ) . height )
44
- . withContext ( 'footer should overflow allowed viewport' )
45
- . toBe ( viewHeight + footer . getBoundingClientRect ( ) . height ) ;
46
-
47
- fixture . debugElement . styles [ 'height' ] = prevHeight ;
48
- } ) ;
49
30
} ) ;
You can’t perform that action at this time.
0 commit comments