NXP-13681: Make textblock more robust to include floating elements