Comments (3)
Start a new pull request in StackBlitz Codeflow.
from ant-design.
我对比了 Menu 组件 和 Dropdown 组件的多层级被包裹在一个包含滚动条的容器当中的情况。
Menu 组件的二级菜单样式中的 inset 属性值会随着容器内滚动条滚动而发生变化,即Menu的二次菜单会随着滚动条一起移动;
Dropdown 组件的二级菜单样式中的 inset 属性值不会随着容器内滚动条滚动而变化,所以 Dropdown 的二级菜单不会随着滚动条一起移动。
怀疑 Dropdown 组件没有处理被包裹在带有滚动条容器当中时,随着滚动条动态设置 inset 属性值
希望对大家有所帮助
from ant-design.
一级弹层本身是在 scroll 容器外,而容器滚动时会使得一级弹层同步移动,而对于二级弹层是没有监听到容器滚动的(因为一级弹层没有在容器里)。
感觉需要一个通知机制告知子元素可能存在的滚动情况。
from ant-design.
Related Issues (20)
- Click propagation on table rows when a modal is clicked
- DatePicker onChange doesn't work for dates on lower edge of disabledDate HOT 1
- CSS Compatible seems to be different in local and in production HOT 1
- menu horizontal 菜单一级菜 key为空字符“” 会一直选中默认选中 HOT 6
- Gap Between Tooltip Content and Arrow When Page is Zoomed HOT 2
- 静态调用message/Modal无法降级:where HOT 4
- Typography.paragraph can't display tooltip HOT 3
- Form.List唯一性校验 HOT 2
- TextArea showCount 和 extra 文字覆盖显示 HOT 2
- rate组件能否禁用键盘默认事件 HOT 1
- Tour组件onClose回调方法current值有误,以及steps多步骤里面的onClose始终调用第一个step的
- Ant Table Sort not working with null values HOT 1
- 关于 Tooltip 的 overlayInnerStyle 属性上添加 css样式 可能会出现闪烁情况 HOT 1
- New component: Toolbar HOT 1
- Dropdown support extra prop HOT 1
- Table 编辑行 ellipsis 失效 HOT 3
- 【bug】表格排序错误的排序出参 HOT 2
- Select组件通过 dropdownRender 自定义虚拟列表 Table, 提示React does not recognize the offsetX prop on a DOM element HOT 2
- 无法使用antd包 HOT 3
- [Wrong statement]Why is component defaultValue not working when inside Form.Item? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ant-design.