FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(label): text wrapping inside flexbox layout by manoldonev · Pull Request #121 · NativeScript/tns-core-modules-widgets · GitHub

This repository was archived by the owner on Mar 21, 2019. It is now read-only.

fix(label): text wrapping inside flexbox layout - #121

Merged
manoldonev merged 5 commits into
masterfrom
mdonev/tnslabel-layout-fix
May 8, 2018
Merged

manoldonev merged 5 commits into
masterfrom
mdonev/tnslabel-layout-fix

Conversation

manoldonev commented May 3, 2018
edited
Loading

Copy link
Copy Markdown
Contributor

(Widget part of) Fixes NativeScript/NativeScript#4834
(Widget part of) Fixes NativeScript/NativeScript#3834

NOTE: Also fixes iOS 11 specific scenarios with text wrapping outside flexbox.

manoldonev self-assigned this May 3, 2018
manoldonev changed the title fix(ios-label): fix text wrapping in iOS 11 fix(label): text wrapping inside flexbox layout May 4, 2018
// might result in increased height e.g. text that could be shown on one line for larger
// width needs to be wrapped in two when width is reduced.
// As a result we cannot unconditionally measure with EXACTLY the current measured height
int childHeightMeasureSpec = getChildMeasureSpec(this.getMeasuredHeightAndState(),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Basically this is the Android version of the fix from this PR NativeScript/NativeScript#5781

manoldonev merged commit a65984f into master May 8, 2018
manoldonev deleted the mdonev/tnslabel-layout-fix branch May 8, 2018 12:08
This file contains hidden or 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Label in FlexboxLayout isn't sized correctly on iOS FlexboxLayout doesn't measure and layout properly long labels

2 participants


Back | FazBrowse Home | New Git URL