mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
DAT-3934 remove comment
This commit is contained in:
parent
cbc0a10a78
commit
8dd35e8146
|
@ -170,7 +170,6 @@ class PortableInfoboxRenderServiceHelper {
|
||||||
*/
|
*/
|
||||||
public function getThumbnailSizes( $preferredWidth, $maxHeight, $originalWidth, $originalHeight ) {
|
public function getThumbnailSizes( $preferredWidth, $maxHeight, $originalWidth, $originalHeight ) {
|
||||||
if ( ( $originalHeight / $originalWidth ) > ( $maxHeight / $preferredWidth ) ) {
|
if ( ( $originalHeight / $originalWidth ) > ( $maxHeight / $preferredWidth ) ) {
|
||||||
// width should be
|
|
||||||
$height = min( $maxHeight, $originalHeight );
|
$height = min( $maxHeight, $originalHeight );
|
||||||
$width = min( $preferredWidth, $height * $originalWidth / $originalHeight );
|
$width = min( $preferredWidth, $height * $originalWidth / $originalHeight );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue