Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

min-height seems to product an incorrect size #1769

Open
1 task done
kasonyang opened this issue Dec 14, 2024 · 0 comments
Open
1 task done

min-height seems to product an incorrect size #1769

kasonyang opened this issue Dec 14, 2024 · 0 comments

Comments

@kasonyang
Copy link

Report

Issues and Steps to Reproduce

<Layout config={{useWebDefaults: false}}>
  <Node style={{width: 350, height: 200, padding: 20}}>
    <Node style={{height: 60}}>
      <Node style={{minHeight: "100%"}} />
    </Node>
  </Node>
</Layout>

Expected Behavior

The height of third node(minHeight:"100%") equals 60

Actual Behavior

The height of third node(minHeight:"100%") is 160

Link to Code

https://www.yogalayout.dev/playground?code=DwGQhgng9grgLgAgMZQHYDMCWBzAvAb3xgGcBTAdVICMARU9MGAGzmIC4EGmyBfHgPgBQCBMAByUACakExOBCakC+AO6ZJcABYcAzAFYADABoEm0jk1wOAJgPGEABzCTJmVNhsG+QkSPFSZOQUlQjMLKwQANi8BYV8-CWlZeUVlAFs3AAlzbEsOACIARjsAUny+BAB6H19gSsTSGrqGoTrwaHh+IA

When applicable, use this fiddle to post a web repro.

@kasonyang kasonyang changed the title min-height seems to products incorrect size min-height seems to product an incorrect size Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant