mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Scaffold: Fix snackbar bottom inset (#9052)
This commit is contained in:
		@@ -240,13 +240,16 @@ private fun ScaffoldLayout(
 | 
			
		||||
                )
 | 
			
		||||
            }.fastMap { it.measure(looseConstraints) }
 | 
			
		||||
 | 
			
		||||
            val bottomBarHeight = bottomBarPlaceables.fastMaxBy { it.height }?.height
 | 
			
		||||
            val bottomBarHeight = bottomBarPlaceables
 | 
			
		||||
                .fastMaxBy { it.height }
 | 
			
		||||
                ?.height
 | 
			
		||||
                ?.takeIf { it != 0 }
 | 
			
		||||
            val fabOffsetFromBottom = fabPlacement?.let {
 | 
			
		||||
                max(bottomBarHeight ?: 0, bottomInset) + it.height + FabSpacing.roundToPx()
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            val snackbarOffsetFromBottom = if (snackbarHeight != 0) {
 | 
			
		||||
                snackbarHeight + (fabOffsetFromBottom ?: bottomBarHeight ?: bottomInset)
 | 
			
		||||
                snackbarHeight + (fabOffsetFromBottom ?: max(bottomBarHeight ?: 0, bottomInset))
 | 
			
		||||
            } else {
 | 
			
		||||
                0
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user