File tree Expand file tree Collapse file tree
src/components/bottomSheet Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,8 +160,7 @@ function MdBottomSheetProvider($$interimElementProvider) {
160160 $mdTheming . inherit ( bottomSheet . element , options . parent ) ;
161161
162162 if ( options . disableParentScroll ) {
163- options . lastOverflow = options . parent . css ( 'overflow' ) ;
164- options . parent . css ( 'overflow' , 'hidden' ) ;
163+ options . restoreScroll = $mdUtil . disableScrollAround ( options . parent ) ;
165164 }
166165
167166 return $animate . enter ( bottomSheet . element , options . parent )
@@ -192,8 +191,8 @@ function MdBottomSheetProvider($$interimElementProvider) {
192191 $animate . leave ( backdrop ) ;
193192 return $animate . leave ( bottomSheet . element ) . then ( function ( ) {
194193 if ( options . disableParentScroll ) {
195- options . parent . css ( 'overflow' , options . lastOverflow ) ;
196- delete options . lastOverflow ;
194+ options . restoreScroll ( ) ;
195+ delete options . restoreScroll ;
197196 }
198197
199198 bottomSheet . cleanup ( ) ;
You can’t perform that action at this time.
0 commit comments