DOpus.Dlg.Request - blank line makes dialog wide

I've noticed that this line:

var result = DOpus.Dlg.Request("There are items in the Stack.\nAre you sure you want to exit?", "Exit|Cancel", "Confirm", dlg);

results in a nice compact dialog :
dopus_aC3Hylqx6S

but if I want a blank line between the two text lines:

var result = DOpus.Dlg.Request("There are items in the Stack.\n\nAre you sure you want to exit?", "Exit|Cancel", "Confirm", dlg); (Note the duplicated \n\n).

The dialog seems to insert a blank line that's much longer than necessary, resulting in this:

dopus_1ynbIvQ3tU

Bug or by design ?

Thanks.

In the next beta (not 12.21, if that comes first) we'll change this so the empty space is always removed, even for 3 or more lines of text.

(I think I prefer the less compact version myself, but the main thing is that it's consistent, one way or the other.)

1 Like