mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Fixed min size clamp.
This commit is contained in:
parent
9e74913c74
commit
ed6e3f596f
1 changed files with 2 additions and 2 deletions
|
@ -377,7 +377,7 @@ var Size = new Class({
|
|||
|
||||
if (checkParent && this._parent && value > this._parent.width)
|
||||
{
|
||||
value = this._parent.width;
|
||||
value = Math.max(this.minWidth, this._parent.width);
|
||||
}
|
||||
|
||||
return value;
|
||||
|
@ -402,7 +402,7 @@ var Size = new Class({
|
|||
|
||||
if (checkParent && this._parent && value > this._parent.height)
|
||||
{
|
||||
value = this._parent.height;
|
||||
value = Math.max(this.minHeight, this._parent.height);
|
||||
}
|
||||
|
||||
return value;
|
||||
|
|
Loading…
Add table
Reference in a new issue