如何更改向导弹出窗口的宽度?

huangapple go评论54阅读模式
英文:

How to change width of wizard popup window?

问题

有没有办法使向导弹出窗口及其内容变得比默认尺寸更宽?

我需要更改所选的单个弹出窗口,而不是全部。

我有一个简单的向导表单,其中在笔记本页面中添加了树视图。我的问题是,树视图有相当多的字段,窗口宽度不足以正确显示它们。

我尝试在表单内使用<script>标签,甚至设法使窗口变宽,但树视图仍然保持不变,因此达不到预期的目的。

<script>
$(document).ready(function(){
$('.modal-dialog').css({'max-width': '70%'});
$('.modal-content').css({'max-width': '100%'});
});
</script>

英文:

Is there a way to make the wizard popup window AND its content wider than the default size?

I need to change the selected single popup not all.

如何更改向导弹出窗口的宽度?

I have simple wizard form with tree view added in notebook page. My problem is, that the tree has quite a few fields and the window is not wide enough to display them all properly.

I have tried using &lt;script&gt; tags inside the form and even managed to make the window wider, but the tree remained the same thus defeating the purpose.

&lt;script&gt;
    $(document).ready(function(){
        $(&#39;.modal-dialog&#39;).css({&#39;max-width&#39;: &#39;70%&#39;});
        $(&#39;.modal-content&#39;).css({&#39;max-width&#39;: &#39;100%&#39;});
    });
&lt;/script&gt;

如何更改向导弹出窗口的宽度?

答案1

得分: 1

你可以使用Web Dialog Size 模块通过右上角的按钮来扩展/还原对话框的大小。

英文:

You can use the Web Dialog Size module to expand/restore the dialog box size through a button in the upper right corner

答案2

得分: 0

我已经搞清楚了。在问题中显示的&lt;script&gt;的组合,以及将style="width:110%;"添加到用作树的one2many字段的字段上起到了作用。这可能不是最干净的解决方案,但它实现了我需要的功能。尽管最好的解决方案是窗口根据树视图自动扩宽。

英文:

I figured it out. A combination of &lt;script&gt; showed in question and adding style="width:110%;" to one2many field used as the tree did the trick. It is probably not the cleanest solution but it does what I need. Although the best solution would be if the window widened automatically according to the tree view.

huangapple
  • 本文由 发表于 2023年2月27日 02:18:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/75574101.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定