Bug introduced in 8 or earlier and persists through 12.0
Edit 16. IV 2016 I've received an answer from WRI Support:
[...] It does appear that
CellMargins
is not interacting correctly withWindowSize->All
, and I have forwarded an incident report to our developers with the information you provided. I have also included your contact information so that you can be notified once this gets resolved. [...]
Which I believe confirms that this is a bug. I'd appreciate checking that in earlier versions of MMA.
DialogInput
has by default those annoying margins settings (missing a bottom one):
DialogInput[Pane@RandomImage[]]
What is the best/shortest way to make them even.
Let's not touch stylesheets here.
It seems that the problem is more general. I was suspecting that somwhere deep in definitions of DialogInput
some options are prepended but here I'm just using basic code to generate the issue:
NotebookPut @ Notebook[
List @ Cell @ BoxData @ ToBoxes @ Pane[
RandomImage[], ImageMargins -> 0, FrameMargins -> 0
],
WindowSize -> All,
WindowElements -> None,
"CellInsertionPointCell" -> None,
WindowFrameElements -> {"CloseBox"},
ShowCellBracket -> False,
CellMargins -> 10
]