has anyone encountered an issue with `BottomSheetS...
# compose-android
j
has anyone encountered an issue with
BottomSheetScaffold
where the
sheetContent
can be limited by its initial size? if its children are in-composition and fully sized when the
sheetContent
first comes into composition then there is no problem and all works as expected, but if the size is a smaller height (zero in my case) to start with, then once the children are resized to be larger, the
sheetContent
appears blank. code in đź§µ
this is the code that causes the issue:
Copy code
BottomSheetScaffold(
   sheetContent = {
      SomeSheetContent(
         sheetContentViewModel = sheetContentViewModel,
      )
   },
)
if I add a surrounding box with fillMaxSize, the problem goes away:
Copy code
BottomSheetScaffold(
   sheetContent = {
      Box(modifier = Modifier.fillMaxSize()) {
         SomeSheetContent(
            sheetContentViewModel = sheetContentViewModel,
         )
      }
   },
)
if the children of
SomeSheetContent
are all there and full-size when
BottomSheetScaffold
comes into composition, I don’t see the issue, but if they are not, then I do see the issue, reproducible every single time. is this expected behaviour or should I be filing a bug?