문제

I'm trying to open non-maximised dialogs using showModalDialog, but in Chrome they are always opening maximised. Anyone have any ideas why? It is fine in Firefox.

I've put a working example on 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