Primefaces:dialog minimizable option not working with modal

一世执手 提交于 2019-12-11 02:59:06

问题


While enable the minimize option in dialog box with modal as true, then by clicking the minimize, background modal[grey bg] not getting removed. And also, i cannot able to maximize the dialog, which is minimized at the left bottom corner.

I tried using appendtobody, and its not working.

Note:I am using PF 3.4.2

Thanks,


回答1:


It was resolved by adding higher z-index to ".ui-dialog-docking-zone".




回答2:


I don't think that it is a good idea to minimize modal dialogues just because of their nature. Modal dialog says to user stop what are doing now and resolve the issue which is displayed, because it's important. That is why page (or window) under the dialog stays unresponsive, until the task is done. So if I may recommend you, don't use modal dialogues if you need the option to minimize them.



来源:https://stackoverflow.com/questions/16579196/primefacesdialog-minimizable-option-not-working-with-modal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!