NLogViewer icon indicating copy to clipboard operation
NLogViewer copied to clipboard

How to make "Message" column wrap text?

Open UEPSs opened this issue 3 years ago • 3 comments

image The Message column initially is not wrapping text, after I resize window, it starts to wrap text. How to make it wrap text by default?

UEPSs avatar Oct 01 '22 02:10 UEPSs

It seems that Message column width is calculated incorrectly.

UEPSs avatar Oct 02 '22 23:10 UEPSs

Thank you for your feedback. As far as I can remember, I implemented an automatic width adjustment. This means that the width is always adjusted so that the entire text can be read and you don't have to adjust the column width manually every time.

If you do not want this behavior, you would have to implement a corresponding logic or text wrapping. You are welcome to start a PR and upload a corresponding draft.

boexler avatar Oct 04 '22 06:10 boexler

When there is new item added to log view, ListViewLayoutManager.ResizeColumns() is called. By debugging, I find when ListViewLayoutManager.ResizeColumns() is called, layout does not finish and column widths read in this method are still old values, so otherColumnsWidth and fillWidth local variable is calculated incorrectly. #93

UEPSs avatar Oct 09 '22 07:10 UEPSs