jQuery UI可调整大小的问题超出了控制范围(也可拖动) [英] Jquery UI resizable issue expands beyond containment (draggable also used)

查看:404
本文介绍了jQuery UI可调整大小的问题超出了控制范围(也可拖动)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临的问题是股利的可调整性.当我将其与Draggable一起使用时,它会出现问题,并且无法在宽度方向上调整它的大小.

The problem i am facing is with the resizability of the div. When i use it with Draggable, it gives the problem and not able to resize it width-wise.

如果我单独使用可调整大小的文件,那就很好.但是我需要使其具有可拖动功能.

If i use the resizable alone, then it is fine. But i need to make it work with draggable feature.

建议.

单击演示的jsFiddle链接.

click the jsFiddle link for the demo.

推荐答案

在容器中添加position:relative;即可解决问题.

Adding a position:relative; to the container solves the issue.

请参见以下正在工作的小提琴示例!

#ParentDIV {
    position: relative;
}

这篇关于jQuery UI可调整大小的问题超出了控制范围(也可拖动)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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