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

Label incorrectly resizes in horizontal Stack · Issue #6059 · NativeScript/NativeScript · GitHub

Label incorrectly resizes in horizontal Stack #6059

Description

Here is a screenshot of the problem:

It seems that the Label is incorrectly resized after it decided that there is no room for the whole text and replaced it with ellipsis. This caused the StackLayout to squeeze in another element to the right. Seems to be caused by #5781

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.1.2
  • Cross-platform modules: next
  • Runtime(s): next

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

<StackLayout orientation="horizontal" backgroundColor="Crimson">
    <StackLayout backgroundColor="GoldenRod">
        <Label text="overflowing text, overflowing text"></Label>
        <Label text="overflowing text, overflowing text"></Label>
        <Label text="overflowing text, overflowing text"></Label>
    </StackLayout>
    <StackLayout backgroundColor="LemonChiffon">
        <Label text="overflowing text, overflowing text"></Label>
        <Label text="overflowing text, overflowing text"></Label>
        <Label text="overflowing text, overflowing text"></Label>
    </StackLayout>
    <StackLayout backgroundColor="Crimson">
        <Label text="overflowing text, overflowing text"></Label>
        <Label text="overflowing text, overflowing text"></Label>
        <Label text="overflowing text, overflowing text"></Label>
    </StackLayout>
    <StackLayout backgroundColor="Chocolate">
        <Label text="overflowing text, overflowing text"></Label>
        <Label text="overflowing text, overflowing text"></Label>
        <Label text="overflowing text, overflowing text"></Label>
    </StackLayout>
</StackLayout>

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL