Remove width and height parameter from Boxes.open() Code for detecting the size ignores text. Until this is fixed you need to surround text by lines of some sort.