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

fix: align units of sheet corner radius in different callsites #2377

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Oct 3, 2024

Description

Before this PR, when updating corner size after initial render different unit (pixel) has been used opposed to
dp used during initial render. This PR align this behaviour so that dp is always used.

Changes

  • Calculate appropriate value in Screen.onSheetDetentChange function

Test code and steps to reproduce

Test1649

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@kkafar kkafar changed the base branch from main to @kkafar/fix-crash-on-non-form-sheet-examples October 3, 2024 08:00
@kkafar kkafar requested review from alduzy and maciekstosio October 3, 2024 08:00
@kkafar kkafar deleted the branch @kkafar/fix-crash-on-non-form-sheet-examples October 3, 2024 08:13
@kkafar kkafar closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants