mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Text.lineSpacing works correctly again. Before no space was added between the lines (thanks @intimidate #1367 and @brejep #1366)
This commit is contained in:
parent
bc588ef09f
commit
e86f00eb55
2 changed files with 3 additions and 2 deletions
|
@ -249,6 +249,7 @@ This fixes a bug in FF where it would use the default DOMMouseWheel (thanks @pns
|
|||
* Emitter.setScale fixed minX minY order presedence (thanks spayton)
|
||||
* Group.iterate can now accept undefined/null as the arguments (thanks @pnstickne #1353 @tasos-ch #1352)
|
||||
* When you change State the P2 Physics world is no longer fully cleared. All of the bodies, springs, fixtures, materials and constraints are removed - but config settings such as gravity, restitution, the contact solver, etc are all retained. The P2.World object is only created the very first time you call Physics.startSystem. Every subsequent call hits P2.World.reset instead. This fixes "P2.World gravity broken after switching states" (and other related issues) (#1292 #1289 #1176)
|
||||
* Text.lineSpacing works correctly again. Before no space was added between the lines (thanks @intimidate #1367 and @brejep #1366)
|
||||
|
||||
### Pixi 2.1.0 New Features
|
||||
|
||||
|
|
|
@ -386,8 +386,8 @@ Phaser.Text.prototype.updateText = function () {
|
|||
|
||||
//calculate text height
|
||||
var lineHeight = fontProperties.fontSize + this.style.strokeThickness + this._lineSpacing;
|
||||
|
||||
var height = lineHeight * lines.length;
|
||||
|
||||
var height = (lineHeight + this._lineSpacing) * lines.length;
|
||||
|
||||
this.canvas.height = height * this.resolution;
|
||||
|
||||
|
|
Loading…
Reference in a new issue