Chrome中的ShowModalDialog总是最大化的
-
14-11-2019 - |
题
我正在尝试使用showmodaldialog打开非最大化的对话框,但在Chrome中,它们始终打开最大化。有人有什么想法为什么?在Firefox中很好。
我在 jsfiddle :上
<a href="javascript:void 0;"
onclick="showModalDialog('http://jsfiddle.net/');">Go</a>
. 解决方案
It turns out that the problem was that I was launching Chrome with WindowStyle = ProcessWindowStyle.Maximised
, and this was propagating to child windows. I changed it to WindowStyle = ProcessWindowStyle.Normal
and cleared my Chromium user profile, and now it is fine.
不隶属于 StackOverflow