voste Posted August 15, 2017 Share Posted August 15, 2017 Hi, I have problem with getting height of text. Here is a example: text.style.wordWrapWidth = width; var height = text.height; Height is not correct value! After some time when i print in console "text.height" I get correct value! Is there a way to force text transform ? Quote Link to comment Share on other sites More sharing options...
Exca Posted August 15, 2017 Share Posted August 15, 2017 Does text.updateText() help? Quote Link to comment Share on other sites More sharing options...
voste Posted August 15, 2017 Author Share Posted August 15, 2017 @Exca No I tried , same issue ! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 15, 2017 Share Posted August 15, 2017 Possible workaround: text._boundsID = -1; console.log(text.height); Quote Link to comment Share on other sites More sharing options...
voste Posted August 15, 2017 Author Share Posted August 15, 2017 @ivan.popelyshev Nope , same issue! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 15, 2017 Share Posted August 15, 2017 What is the version of pixi you use? Try to use both updateText() and boundsID Quote Link to comment Share on other sites More sharing options...
voste Posted August 15, 2017 Author Share Posted August 15, 2017 @ivan.popelyshev Not working again! I use v4.5.3 ! Quote Link to comment Share on other sites More sharing options...
themoonrat Posted August 15, 2017 Share Posted August 15, 2017 I think we're going to need a jsfiddle on this one, so we can debug rather than guess the common fixes for this sort of thing! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 15, 2017 Share Posted August 15, 2017 After we failed multiple times, fiddle is a good idea. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.