英文:
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 <script>
tags inside the form and even managed to make the window wider, but the tree remained the same thus defeating the purpose.
<script>
$(document).ready(function(){
$('.modal-dialog').css({'max-width': '70%'});
$('.modal-content').css({'max-width': '100%'});
});
</script>
答案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
我已经搞清楚了。在问题中显示的<script>
的组合,以及将style="width:110%;"
添加到用作树的one2many字段的字段上起到了作用。这可能不是最干净的解决方案,但它实现了我需要的功能。尽管最好的解决方案是窗口根据树视图自动扩宽。
英文:
I figured it out. A combination of <script>
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论