Fix scale to fit contents when device pixel ratio isn't 1.0.

Reviewed by: Thiago Lacerda