我正在尝试使用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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top