⚡ Sangsakala Proxy 🏠 Home
Skip to content

Label incorrectly resizes in horizontal Stack #6059

Closed

Description

@MartoYankov

Here is a screenshot of the problem:
simulator screen shot - iphone 7 - 2018-07-12 at 14 26 25

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

  1. self-assigned this
    on Aug 14, 2018
  2. added this to the 4.3 (TBD) milestone on Aug 14, 2018
  3. ghost removed on Aug 17, 2018
  4. lock commented on Aug 26, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  5. locked and limited conversation to collaborators on Aug 26, 2019
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