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

FlexboxLayout doesn't measure and layout properly long labels · Issue #3834 · NativeScript/NativeScript · GitHub

FlexboxLayout doesn't measure and layout properly long labels #3834

Description

The following case fails on iPhone 6 and Nexus 5 emulator:

<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo">
    <FlexboxLayout flexDirection="row" alignItems="flex-start" verticalAlignment="top" backgroundColor="yellow">
        <Label text="txt" backgroundColor="#ffe4c4" class="date" width="80" flexShrink="0"></Label>
        <FlexboxLayout flexDirection="column" flexShrink="1" backgroundColor="#7fffd4">
            <Label text="There are many variations of passages of sssssss Lorem Ipsum available, but the majority have suffered alteration in some form!" textWrap="true" flexGrow="3"></Label>
            <Label text="Subtitle..." textWrap="true" fontSize="10"></Label>
        </FlexboxLayout>
    </FlexboxLayout>
</Page>

The ' some form!' string is absent or clipped.

N.B. It looks like the first FB measures the second with some width, and then arranges the second with another smaller width, making the text in its Label wrap into an additional line, unforeseen during measure, wreaking havoc vertically in the the second FB layout.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL