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
Problem with setting width and height of a background #70
Comments
Thanks for the heads up @Dokmak! The issue happens when the sprites width and height are being set before the texture has loaded. I just updated pixi.js so that it should behave a little better for ya :) Let me know if the update fixes your issue! Thanks! |
You mean I can now use the above code sample normally ? I thought that you could maybe do a setter and a getter for the width and height ? |
Still the same actually ... it displays it correctly on chrome once ... and twice or three times with the default image size. I'll try and find a way to fix it as well :) |
Interesting.. I implemented a fix suggested a little while age here: #29 |
Yep sure ... but please email me : mdokmak92@yahoo.com |
All sorted :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello guys [Urgent 2]
Setting the width and height of an image sprite as a background using
var background = PIXI.Sprite.FromImage('someurl');
then setting the width and height using
background.width = 800;
background.height = 600;
it sometimes works correctly ... and sometimes it doesn't work at all ... do I have to use the assets loader class and import image data with json ? like the image url , the width and height , position ?
Or there is some turnaround that could be done ? :)
Thanks :) 👍
The text was updated successfully, but these errors were encountered: