Angular Material多对象拖放与调整大小问题 [英] Angular Material multi objects drag and drop with resizing problem

查看:138
本文介绍了Angular Material多对象拖放与调整大小问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在调整大小时拖放编程方面遇到了问题

hi I stuck problem about programming drag and drop with resizing

通过单击添加按钮动态添加cdkDrag div 它的工作原理只有一个div,但是如果我添加两个以上的div,则当尝试调整旧div的高度时,其他div会移动,然后再调整旧div的大小.真奇怪是虫子吗?

dynamically add cdkDrag div by click add button It works have only one div, but if I add more than 2 divs , When try to resize height of older div.other divs move followed by older div resizing. It's quite strange. Is it bug?

我尝试了所有其他操作,但失败了.请检查网站并向我提出建议. https://stackblitz.com/edit/angular-ivy-vkxx3r

I tried all other stuff but failed.please check follow site and advice me. https://stackblitz.com/edit/angular-ivy-vkxx3r

谢谢

推荐答案

最后我解决了.只需更改相对于绝对位置的对象位置即可. 我是个白痴.

finally I solved. just change object postion relative to absolute. what an idoit I am.

这篇关于Angular Material多对象拖放与调整大小问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆