YUI 缩小内容面板?

发布于 2024-09-09 08:06:08 字数 336 浏览 1 评论 0原文

我有一个 YUI 可调整大小的对话框,其中包含一个多选项卡小部件。在 IE 上运行良好 > 7、Safari、FF、Chrome。

问题:最初,当用户更改选项卡时,对话框会缩小以适应新选项卡。

但是,在用户调整对话框大小后,如果选择了新选项卡,则对话框不会缩小以适应新选项卡。

如何更改对话框的大小,以便当用户选择选项卡时它再次包裹在选项卡周围?

测试用例 html

I have a YUI resizable dialog that contains a multi-tab widget. Works fine on IE > 7, Safari, FF, Chrome.

Question: Initially, when a user changes tabs, the dialog shrinks to fit the new tab.

But after the user resizes the dialog, if a new tab is selected, the dialog does NOT shrink to fit the new tab.

How can I change the size of the dialog so it is again wrapped around a tab when a tab is selected by the user?

Test case html

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

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

发布评论

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

评论(1

荆棘i 2024-09-16 08:06:08

调整对话框大小后,将在对话框的 DIV 上设置宽度。这个宽度决定了它的大小,而不是内容(它是其中之一)。您需要将调整实例大小的 DIV 的宽度设置为“”,以使其再次收缩包装其内容。之后您可能需要重新同步调整大小,以便它了解新的内容驱动大小。

希望有帮助,
萨廷

After resizing the Dialog, a width is set on the Dialog's DIV. This width dictates it's size, and not the content (it's one or the other). You'll need to set the width of the DIV which the resize instance is sizing to "", to have it shrink-wrap it's content again. You may need to re-sync resize afterwards, so it knows about the new content driven size.

Hope that helps,
Satyen

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