super_frog Posted June 19, 2015 Share Posted June 19, 2015 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) and Firefox (version 38.0.5) 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 More sharing options...
Recommended Posts