File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ md-ink-bar {
33
33
position : relative ;
34
34
overflow : hidden ;
35
35
display : flex ;
36
- transition : height 0.5 s $ease-in-out-curve-function ;
36
+ transition : height 500 ms $ease-in-out-curve-function ;
37
37
}
38
38
39
39
// Wraps each tab body
Original file line number Diff line number Diff line change @@ -279,12 +279,11 @@ export class MdTabGroup {
279
279
this . _renderer . setElementStyle ( this . _tabBodyWrapper . nativeElement , 'height' ,
280
280
this . _tabBodyWrapperHeight + 'px' ) ;
281
281
282
- // This statement is enough to tell the browser to force paint the height so that
282
+ // This conditional forces the browser to paint the height so that
283
283
// the animation to the new height can have an origin.
284
- this . _tabBodyWrapper . nativeElement . offsetHeight ;
285
-
286
- this . _renderer . setElementStyle ( this . _tabBodyWrapper . nativeElement , 'height' ,
287
- e + 'px' ) ;
284
+ if ( this . _tabBodyWrapper . nativeElement . offsetHeight ) {
285
+ this . _renderer . setElementStyle ( this . _tabBodyWrapper . nativeElement , 'height' , e + 'px' ) ;
286
+ }
288
287
}
289
288
290
289
/** Removes the height of the tab body wrapper. */
You can’t perform that action at this time.
0 commit comments