Jump to content

Different graphics height in Firefox


Recommended Posts

I am creating a game where I am using game.add.graphics to draw a rectangle.

In Firefox, rectangle height is greater by few pixels than in Chrome.

Phaser version is 2.1.2.


Here's the picture from Chrome (version 43.0.2357.124) post-12275-0-78286600-1434730715.png and Firefox (version 38.0.5) post-12275-0-01593300-1434730724.png


And here's the code:

var t = thisgame.add.graphics(0,0);var g = thisgame.add.group();        var text = thisgame.add.text(0, 0, 'hello',{font: '15px Tahoma', fill: '#FFF'});text.x = 5;t.beginFill(0x000, 0.6);t.drawRect(0, 0, text.width + 10, 20);t.endFill();g.add(t);g.add(text);g.x = 150;g.y = 200;
Is the problem with browser or something else?
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...