Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog's content not occupying the whole screen #4252

Closed
dhng22 opened this issue Feb 7, 2024 · 2 comments
Closed

Dialog's content not occupying the whole screen #4252

dhng22 opened this issue Feb 7, 2024 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@dhng22
Copy link

dhng22 commented Feb 7, 2024

Describe the bug
I'm trying to make a full-screen dialog, but somehow it has some kind of platform padding at the bottom which make my dialog can not be full, even with usePlatformDefaultWidth set to false
Affected platforms

  • Android
  • iOS

Versions

  • Kotlin version*: 1.9.21
  • Compose Multiplatform version*: 1.5.4
  • OS architecture (x86 or arm64): arm64

To Reproduce
Create a dialog and make the content go fillMaxSize() to see

Expected behavior
The content inside the dialog should occupy the whole window

Screenshots
image

@dhng22 dhng22 added bug Something isn't working submitted labels Feb 7, 2024
@MatkovIvan
Copy link
Member

MatkovIvan commented Feb 7, 2024

Use DialogProperties.usePlatformInsets for ignoring insets on iOS.
For Android there is decorFitsSystemWindows option (if it doesn't work only on Android - please open an issue in Google's Jetpack Compose issue tracker) https://partnerissuetracker.corp.google.com/issues/246909281

Duplicate of #3741
Fixed in JetBrains/compose-multiplatform-core#833
Available since 1.5.10

@MatkovIvan MatkovIvan added duplicate This issue or pull request already exists and removed submitted labels Feb 7, 2024
@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants