Open tig opened 1 year ago
Nevermind.
Unfortunately this isn't working again when WordWrap
is false
. I even had created a unit test before to this doesn't happens again but it seems that the were changed because the tests is passing.
@tig I really don't understand what you want doing here. TextFormatter
doesn't rely on View
, so it's the MessageBox
who have to provide the necessary width
and height
for the Dialog
dependent if wrapMessage
is true or not. How the TextFormatter
will resize the view based on the TextFormatter.WordWrap
property? If you have a great idea I'm curious. Otherwise I see that much of the code (#2405) I did before was deleted, so I'll give up on this.
I'll look at this later and try to fix this. Sorry about screwing this up.
Looks like none of the existing unit tests actually test if
preserveTrailingSpaces
isfalse
.This test proves that it's not working correctly: