You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Line width and height aren't updated after setTo() #7270
Create a new Line Game Object. The width and height are correct, equal to the horizontal and vertical lengths. Call setTo(), changing the endpoint coordinates. The width and height are incorrect (unchanged).
Example Test Code
constline=newPhaser.GameObjects.Line({sys: {queueDepthSort: function(){}}},0,0,0,0,1,2);console.info('4 assertions should pass …');console.assert(line.width===1,'Initial width should be 1');console.assert(line.height===2,'Initial height should be 2');line.setTo(100,100,103,105);console.assert(line.width===3,'Width after setTo() should be 3');console.assert(line.height===5,'Height after setTo() should be 5');console.info('Done');
Activity
livbell1231-create commentedon Mar 31, 2026
Fix wrong Line dimensions after setTo()