File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/@react-aria/overlays/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -301,14 +301,14 @@ function getMaxHeight(
301301 let maxHeight = heightGrowthDirection !== 'top' ?
302302 // We want the distance between the top of the overlay to the bottom of the boundary
303303 Math . max ( 0 ,
304- ( boundaryDimensions . height + boundaryDimensions . top + ( boundaryDimensions . scroll . top ?? 0 ) ) // this is the bottom of the boundary
304+ ( boundaryDimensions . height + boundaryDimensions . top ) // this is the bottom of the boundary
305305 - overlayTop // this is the top of the overlay
306306 - ( ( margins . top ?? 0 ) + ( margins . bottom ?? 0 ) + padding ) // save additional space for margin and padding
307307 )
308308 // We want the distance between the bottom of the overlay to the top of the boundary
309309 : Math . max ( 0 ,
310310 ( overlayTop + overlayHeight ) // this is the bottom of the overlay
311- - ( boundaryDimensions . top + ( boundaryDimensions . scroll . top ?? 0 ) ) // this is the top of the boundary
311+ - boundaryDimensions . top // this is the top of the boundary
312312 - ( ( margins . top ?? 0 ) + ( margins . bottom ?? 0 ) + padding ) // save additional space for margin and padding
313313 ) ;
314314 return Math . min ( boundaryDimensions . height - ( padding * 2 ) , maxHeight ) ;
You can’t perform that action at this time.
0 commit comments