Skip to content

Conversation

picodoth
Copy link
Contributor

todo item: try not to apply overflow: hidden on root menu.

@coveralls
Copy link

coveralls commented Jul 18, 2018

Coverage Status

Coverage decreased (-0.7%) to 98.956% when pulling 5868f06 on redo-overflow into b93a156 on master.

@picodoth
Copy link
Contributor Author

@yesmeck @afc163
我把不需要设置 menu root 为 relative 改好了,关于 不用resize handler 而用 observer 我在想:

  1. 必要性?
  2. 如果确实必要,是不是可以考虑放另一个 pr,要不我真怕时间比较紧张

@picodoth picodoth requested review from yesmeck and afc163 July 30, 2018 03:37
@afc163 afc163 requested a review from zombieJ July 30, 2018 08:10
@zombieJ
Copy link
Member

zombieJ commented Jul 30, 2018

overflowedIndicator={false} 的时候占位 li 还是在的?
哦,好像不能 false

@picodoth
Copy link
Contributor Author

picodoth commented Aug 4, 2018

@yesmeck 我试了一下 mutation observer, 但是好像 jest �跑起来有问题,有没有碰到类似的情况

@ant-design-bot
Copy link

ant-design-bot commented Aug 19, 2018

Deploy preview for rc-menu ready!

Built with commit 5868f06

https://deploy-preview-180--rc-menu.netlify.com

@picodoth picodoth changed the title [WIP]Redo overflow Redo overflow Aug 19, 2018
@picodoth
Copy link
Contributor Author

用了 ResizeObserver 和 MutationObserver.

ResizeObserver => 监控子元素宽度变化
MutationObserver => 监控子元素增加或者减少

@picodoth picodoth force-pushed the redo-overflow branch 2 times, most recently from 54fb52c to f4076bf Compare August 19, 2018 10:21
@picodoth
Copy link
Contributor Author

picodoth commented Aug 19, 2018

Ready for another round

@chenshuai2144
Copy link
Contributor

感觉这波很稳呀

@picodoth picodoth merged commit bf86e44 into master Aug 30, 2018
@picodoth picodoth deleted the redo-overflow branch August 30, 2018 02:17
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

Successfully merging this pull request may close these issues.

5 participants