Skip to content

Document min-scale on native:text - #608

Open
martin-ro wants to merge 1 commit into
NativePHP:mainfrom
martin-ro:docs/text-min-scale
Open

martin-ro wants to merge 1 commit into
NativePHP:mainfrom
martin-ro:docs/text-min-scale

Conversation

@martin-ro

Copy link
Copy Markdown

Documents the min-scale attribute on <native:text> and Text::minScale(), from NativePHP/mobile-air#667 and NativePHP/mobile-ui#206.

  • Props: min-scale, labelled as added in mobile 4.8 and mobile-ui 0.10.
  • Shrink to fit: a new section with an example, the clamp to 0 to 1, and the two limits: it needs max-lines (SwiftUI only shrinks text with a line limit), and on Android, text with inline runs keeps its size.
  • Element: minScale(float $scale), labelled as added in 4.8.

The label check in VersionBadgeTest fails until 4.8 and mobile-ui 0.10 are in config/docs.php, as on #601.

NativePHP/mobile-air#667 and NativePHP/mobile-ui#206 added min-scale, so a text can shrink to fit its lines before it truncates. The text page did not list it yet.

This branch has not been deployed

No deployments
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.

1 participant