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 {
3333 position : relative ;
3434 overflow : hidden ;
3535 display : flex ;
36- transition : height 0.5 s $ease-in-out-curve-function ;
36+ transition : height 500 ms $ease-in-out-curve-function ;
3737}
3838
3939// Wraps each tab body
Original file line number Diff line number Diff line change @@ -279,12 +279,11 @@ export class MdTabGroup {
279279 this . _renderer . setElementStyle ( this . _tabBodyWrapper . nativeElement , 'height' ,
280280 this . _tabBodyWrapperHeight + 'px' ) ;
281281
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
283283 // 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+ }
288287 }
289288
290289 /** Removes the height of the tab body wrapper. */
You can’t perform that action at this time.
0 commit comments