Skip to content

Commit 1654d5f

Browse files
authored
Merge pull request #786 from microsoft/dhruvMishra/bottomSheetOfficeFix
[V2 Bottomsheet] Fixed Bottomsheet Not Appearing in Office
2 parents 655d5a8 + 57ae3a8 commit 1654d5f

File tree

1 file changed

+1
-3
lines changed
  • fluentui_drawer/src/main/java/com/microsoft/fluentui/tokenized/bottomsheet

1 file changed

+1
-3
lines changed

fluentui_drawer/src/main/java/com/microsoft/fluentui/tokenized/bottomsheet/BottomSheet.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import android.content.res.Configuration
1010
import android.view.*
1111
import android.view.accessibility.AccessibilityEvent
1212
import android.view.accessibility.AccessibilityManager
13-
import androidx.compose.animation.animateContentSize
1413
import androidx.compose.animation.core.AnimationSpec
1514
import androidx.compose.foundation.*
1615
import androidx.compose.foundation.gestures.Orientation
@@ -368,7 +367,6 @@ fun BottomSheet(
368367
Box(
369368
Modifier
370369
.align(Alignment.TopCenter)
371-
.animateContentSize()
372370
.fillMaxWidth(
373371
if (configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) maxLandscapeWidth
374372
else 1F
@@ -547,7 +545,7 @@ fun BottomSheet(
547545
}
548546
} else Modifier.fillMaxSize()), content = {
549547
sheetContent()
550-
Box(
548+
Spacer(
551549
modifier = Modifier
552550
.fillMaxWidth()
553551
.height(

0 commit comments

Comments
 (0)