In that case, you were probably trying to get the height in the same code frame as adding the plugin. To get it to work you would have needed to use a delayed call to check the height in a subsequent frame which ensured the plugin was already created.
Really, i try to get height with delayedcall and get correct height of html text. Thanks for help.