Skip to content

Web Inconsistency: Node is too tall #505

@rigdern

Description

@rigdern

Yoga Test Input

Here's a test case which fails:

<div style="width: 100px; height: 100px; align-items: center; margin-top: 20px;">
  <div style="flex-grow: 0; flex-shrink: 1; justify-content: center;">
    <div style="flex-grow: 1; flex-shrink: 1; background-color: steelblue;">
      <div style="width: 20px; height: 20px; background-color: orange;"></div>
    </div>
  </div>
</div>

Yoga Test Failure Output

      Expected: 20
To be equal to: YGNodeLayoutGetHeight(root_child0)
      Which is: 100

Expected Visual

The blue box is not visible.

image

Actual Visual

The blue box is visible.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions