Use jQuery masonry with Absolutely Positioned Parent?

后端 未结 1 1346
不知归路
不知归路 2021-01-16 04:15

I have a dropdown (ul.sub-menu) with items inside (ul.sub-menu > li) that I\'d like to apply jQuery Masonry to, but my dropdown is absolutely positioned. Is there a way to

相关标签:
1条回答
  • 2021-01-16 04:48

    In your Masonry settings try:

    containerStyle: { position: 'absolute' }
    

    See docs on containerStyle

    By default, Masonry sets position: relative on the container.

    0 讨论(0)
提交回复
热议问题