Skip to content

Commit 168ce82

Browse files
committed
Rectangle.bottom setter swapped the order of the calculation (thanks @JakeCoxon phaserjs#1165)
1 parent fe0c03d commit 168ce82

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ Version 2.1.0 - "Cairhien" - -in development-
177177
* Added Sound._muteVolume which stops Firefox and IE9 crashing if you try to unmute a sound that hasn't yet been muted, which can also happen as a result of a game visibility change (thanks @osmanzeki #1108 #1123)
178178
* P2.World.getSprings used to return an empty array, but now returns all the Springs in the world (#1134)
179179
* Tween.generateData would skip the end values in the data array. They are now included as the object in the final array element.
180+
* Rectangle.bottom setter swapped the order of the calculation (thanks @JakeCoxon #1165)
180181

181182
### p2.js 0.6.0 Changes and New Features
182183

src/geom/Rectangle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Object.defineProperty(Phaser.Rectangle.prototype, "bottom", {
334334
if (value <= this.y) {
335335
this.height = 0;
336336
} else {
337-
this.height = (this.y - value);
337+
this.height = value - this.y;
338338
}
339339
}
340340

0 commit comments

Comments
 (0)