mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 11:34:18 +08:00
docs: update comments
This commit is contained in:
@@ -124,7 +124,7 @@ private fun ScaffoldLayout(
|
|||||||
navigationBarPlaceables.forEach { navigationBarHeight += it.height }
|
navigationBarPlaceables.forEach { navigationBarHeight += it.height }
|
||||||
// Measure content with [navigationBar] height.
|
// Measure content with [navigationBar] height.
|
||||||
val contentConstraints = constraints.copy(
|
val contentConstraints = constraints.copy(
|
||||||
// The content width follow baseConstraints, use innerPadding to control content padding.
|
// The content width follow [baseConstraints], use [innerPadding] to control content padding.
|
||||||
maxWidth = baseConstraints.maxWidth,
|
maxWidth = baseConstraints.maxWidth,
|
||||||
// The maxHeight of content must be >= minHeight, if not will coerce to minHeight.
|
// The maxHeight of content must be >= minHeight, if not will coerce to minHeight.
|
||||||
maxHeight = (constraints.maxHeight - currentY - navigationBarHeight).coerceAtLeast(constraints.minHeight)
|
maxHeight = (constraints.maxHeight - currentY - navigationBarHeight).coerceAtLeast(constraints.minHeight)
|
||||||
|
Reference in New Issue
Block a user