Also keep maxY into account when scaling a preview while preserving aspect ratio
Merge pull request #10024 from owncloud/preview-restrict-height

Also keep maxY into account when scaling a preview while preserving aspect ratio