Added 1-pixel padding for TextHandler