Bug introduced in V9.0 or earlier and persisting through V11.2
pic2 = ImageResize[
ImageCrop@Rasterize@Graphics@Disk[],
{Automatic, 40}]
Grid[{{pic2}}]
This is just annoying...
Win 10 V10.3.1
Q: so, is there any quick fix? Have I missed something obvious?
p.s. e.g. Row
works well but it is not Grid
:-)
A support case with the identification [CASE:3522370] was created:
Thank you for contacting Wolfram Technical Support.
I have filed a report regarding the behavior you describe. The appropriate development team will be able to review the issue and hopefully implement a fix in a future version.
Fortunately this is not an issue with the object itself, but with its visual representation in the Mathematica front end. Although not a practical workaround, if you increase your magnification from 100% to 200%, you will notice the problem no longer persists. Similarly, if I printed the notebook demonstrating the issue I did not experience the clipping.
If you are able to get away without using ImageCrop, the issue does not seem to present itself. Without seeing your actual application it is difficult to provide a solution that will work in any scenario and still maintain the exact results you desire.
Spacings
. Unfortunately,Spacings does not repair the original problem; e.g.,
Grid[{{pic2}}, Frame -> All, Spacings -> {1, 1}]` $\endgroup$Grid
shows the circle correctly with or without theFrame
option $\endgroup$