JQuery UI 弹出元素定位不正确

发布于 2024-09-02 01:48:22 字数 168 浏览 3 评论 0原文

我正在使用 JQuery UI 对话框和 JQuery UI 自动完成,它们在弹出时都有相同的错误行为,位置始终为 0,0!弹出对话框时我尝试了一些不同的位置参数,但似乎没有帮助。

有什么线索吗?这是 JQuery 中位置计算的错误吗?或者这是一些CSS错误?

版本为1.4.2和1.8.0

I am using both JQuery UI Dialog and JQuery UI autocomplete both have the same erroneous behavior when they popup, the position is always 0,0! I have tried some different position arguments when popping up the dialog but non seems to help.

Any clues? Is this a bug in the position calculation in JQuery? Or is this some css bug?

Versions are 1.4.2 and 1.8.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你与清晨阳光 2024-09-09 01:48:22

好吧,我发现这个错误是由一个名为 jquery.dimensions 的外部 jquery 脚本插件引起的... - “从 jQuery 1.2.6 开始,尺寸插件已合并到核心中。”所以我刚刚删除了插件,现在一切都按预期工作。

Ok I found out that this error was caused by a external jquery script plugin called jquery.dimensions... - "As of jQuery 1.2.6, the dimensions plugin has been merged into core." So I just removed the plugin and now everything is working as expected.

只为一人 2024-09-09 01:48:22

如果 Okku 的答案不能解决问题,您可能会发现您忘记了包含文件中的文件 jquery.position.js

If Okku's answer doesn't fix things, you may find you've forgotten the file jquery.position.js from your includes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文