Skip to content

Conversation

@mikhailChelbaev
Copy link
Collaborator

You can notice this bug in the sualert branch where setting a longer title for a primary button causes the alert's width to exceed the maxWidth value. This issue likely arises from the stackView's width priority being higher than that of the modal's container.

To resolve this bug, the container's constraint priority is set to .required when the modal's size is smaller than the screen's size. To prevent constraint breaks when the device orientation changes, the constraint deactivates in the viewWillTransition method.

Base automatically changed from sualert to dev December 30, 2024 15:07
@mikhailChelbaev mikhailChelbaev merged commit 4fc24cf into dev Dec 30, 2024
1 check passed
@mikhailChelbaev mikhailChelbaev deleted the fix/ukmodal branch December 30, 2024 15:08
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.

3 participants