draw the correct size box for the cursor