From f9190b26f3e698218ccaf0df22ae95ebcf9ba805 Mon Sep 17 00:00:00 2001 From: savenepally Date: Wed, 30 Sep 2026 15:53:45 +0530 Subject: [PATCH] considering the first snackbars height in combined height calculation --- .../fluentui/tokenized/notification/StackableSnackbar.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluentui_notification/src/main/java/com/microsoft/fluentui/tokenized/notification/StackableSnackbar.kt b/fluentui_notification/src/main/java/com/microsoft/fluentui/tokenized/notification/StackableSnackbar.kt index 6784a0e27..96f790962 100644 --- a/fluentui_notification/src/main/java/com/microsoft/fluentui/tokenized/notification/StackableSnackbar.kt +++ b/fluentui_notification/src/main/java/com/microsoft/fluentui/tokenized/notification/StackableSnackbar.kt @@ -711,7 +711,7 @@ private fun SnackBarStackItem( contentHeight + with(localDensity) { snackBarStackConfig.snackbarGapWhenExpanded.toPx().toInt() } - state.combinedStackHeight = state.heightAfterIndex(0) + state.combinedStackHeight = state.heightAfterIndex(-1) return@onGloballyPositioned } )