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

Text interactive wrong area when calling setFontSize() after setInteractive() #4456

Closed
thanh-taro opened this issue Apr 2, 2019 · 2 comments

Comments

@thanh-taro
Copy link

Version

  • Phaser Version: 3.16.2-FB
  • Operating system: Mac OS Mojave 10.14.4
  • Browser: Chrome v73.0.3683.86 (Official Build) (64-bit)

Description

Text interactive wrong area when calling setFontSize() after setInteractive()

Example Test Code

var config = {
    type: Phaser.AUTO,
    parent: 'phaser-example',
    width: 800,
    height: 600,
    scene: { create: create }
};

var game = new Phaser.Game(config);

function create ()
{
    var text = this.add.text(10, 50, 'hover me and watch the cursor change');
    text.setInteractive({ cursor: 'pointer' });
    text.setFontSize(22);
}

Additional Information

I think the reason is the interactive area did not update when changing font size.

@thanh-taro
Copy link
Author

No one cares?

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

2 participants