-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For auto width text fields, set their viewstyle's width and height to auto. The width needs to be auto so that it can expand. The height needs to be auto because Compose's text rendering is slightly bigger than Figma's so if it isn't auto it would get cut off. For auto height with a fill container width text field, set the viewstyle's width and height to auto, and also set the flex_grow field to 1. This is what differentiates this type of text layout with just auto width. Fix an issue where text would get clipped by its parent frame, even if the parent frame did not have clip contents set. To fix this, the Box() parent of DesignText() needs to have wrapContentSize(align = Alignment.TopStart, unbounded = true) set in its Modifier.
- Loading branch information
Showing
9 changed files
with
305 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.