Giter VIP home page Giter VIP logo

Comments (3)

stackblitz avatar stackblitz commented on June 2, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

from ant-design.

LiuSen688 avatar LiuSen688 commented on June 2, 2024

image
我对比了 Menu 组件 和 Dropdown 组件的多层级被包裹在一个包含滚动条的容器当中的情况。

Menu 组件的二级菜单样式中的 inset 属性值会随着容器内滚动条滚动而发生变化,即Menu的二次菜单会随着滚动条一起移动;

Dropdown 组件的二级菜单样式中的 inset 属性值不会随着容器内滚动条滚动而变化,所以 Dropdown 的二级菜单不会随着滚动条一起移动。

怀疑 Dropdown 组件没有处理被包裹在带有滚动条容器当中时,随着滚动条动态设置 inset 属性值

希望对大家有所帮助

from ant-design.

zombieJ avatar zombieJ commented on June 2, 2024

一级弹层本身是在 scroll 容器外,而容器滚动时会使得一级弹层同步移动,而对于二级弹层是没有监听到容器滚动的(因为一级弹层没有在容器里)。
感觉需要一个通知机制告知子元素可能存在的滚动情况。

from ant-design.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.