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

Flex 容器下绝对定位图片导致 Flex 容器高度计算异常 #1003

Closed
temper357 opened this issue Dec 22, 2021 · 0 comments · Fixed by #1004
Closed

Flex 容器下绝对定位图片导致 Flex 容器高度计算异常 #1003

temper357 opened this issue Dec 22, 2021 · 0 comments · Fixed by #1004
Assignees
Labels
bug Something isn't working

Comments

@temper357
Copy link
Contributor

使用的 Kraken 版本 | What version of kraken are you using

main

重现步骤 | Steps To Reproduce

重现代码 | Code example:

 const div2 = document.createElement('div');
    div2.innerHTML = `
    <div style="display: flex; overflow: hidden; position: relative; background-color: yellow;">
      <img src="https://liangcang-material.alicdn.com/prod/upload/c31280a9ead34865be266dd6adaf7bd8.jpg?x-oss-process=image/resize,w_3072/format,webp/interlace,1" style="width: 100vw; height: 200px; position: absolute; left: 0vw; top: 0vw; flex-shrink: 0; background-color: green;" />
      <div style="width: 100vw; padding-top: 20px; padding-bottom: 20px; flex-shrink: 0;">
      </div>
    </div>
    `;

document.body.appendChild(div2);

预期结果 | Expected results:
image

实际结果 | Actual results:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant