Fix getBounds() for auto-sized text