Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug : Lines do not display correctly if Text is added to the scene #6788

Open
DoodahProductions opened this issue Apr 11, 2024 Discussed in #6787 · 0 comments
Open

Bug : Lines do not display correctly if Text is added to the scene #6788

DoodahProductions opened this issue Apr 11, 2024 Discussed in #6787 · 0 comments

Comments

@DoodahProductions
Copy link

DoodahProductions commented Apr 11, 2024

Discussed in #6787

Originally posted by DoodahProductions April 10, 2024
Hello,

I encounter this display issue where Lines do not display correctly if Text is added to the scene.

Lines added without any Text display correctly in all directions :
Screenshot 2024-04-10 at 12 30 12 PM

Lines added with any Text display correctly only when vertical / horizontal :
Screenshot 2024-04-10 at 12 29 27 PM
Screenshot 2024-04-10 at 12 29 33 PM

Tested on : Google Chrome
Phaser 3.80.1

Repro steps :

  • Create a class 'Block' that extends Phaser.GameObjects.Container. This class should add a Rectangle as child and be draggable.

  • Add two 'Block' to your scene

  • On update, draw a Line that will link the two Block

  • Drag and Drop any of the Block and see that Line is correctly displayed in any direction.

  • Add a Phaser.GameObjects.Text to the Block

  • Drag and Drop any of the Block and see that Line is only displayed when Blocks are aligned horizontally/vertically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant