Autofit doesn't work properly
Brought to you by:
crlab
When you the attribute autofit equal to true and the
image is bigger than the canvas size the image size
isn't correct.
The first time the image is displayed, it appears some
scroll bars, then when you change the window level, the
image is resized to a smaller size, and only when you
resize it again that the image is in his correct size