mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Fixed rectangle/FitOutside.
This commit is contained in:
parent
4240f6c4af
commit
e342480ca4
1 changed files with 3 additions and 3 deletions
|
@ -27,12 +27,12 @@ var FitOutside = function (target, source)
|
|||
else
|
||||
{
|
||||
// Taller than Wide
|
||||
target.setSize(source.width, source.width * ratio);
|
||||
target.setSize(source.width, source.width / ratio);
|
||||
}
|
||||
|
||||
return target.setPosition(
|
||||
(source.right / 2) - target.width / 2,
|
||||
(source.bottom / 2) - target.height / 2
|
||||
source.centerX - target.width / 2,
|
||||
source.centerY - target.height / 2
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue