textAttachment's displaySize is wrongly set if the element has a style

baecbac9e3640a5b9fa2c4ba510706c1c90d9232 caused textAttachment's height or width set to zero if element doesn't have those elements and has a style.