Issue with Camera-to-view hotkey? (ctrl+alt+num0)
It looks like everything is working as correctly to me.
Your original viewport view isn't centered. It may look like that to you because the cube is near the center of your monitor, but it's actually down and to the right of the actual viewport itself.
To center your view on an object (or any number of selected objects), press &quot;.&quot; on your numpad, then align your camera. That should resolve the issue :)