﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3213	_Arraydisplay() (from Array.au3) may truncate headers since their max widths are unchecked	Tippex		"_Arraydisplay() (from Array.au3) may truncate headers (if there are any that are larger that then max width of their columns) since their max widths are unchecked.

The fix I use (an amendment to Array.au3) is as follows:


{{{
#include ""ListViewConstants.au3""
		; Check width of header if set
		If $sHeader <> """" Then
			GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETCOLUMNWIDTH, $i, $LVSCW_AUTOSIZE_USEHEADER)
			Local $iColWidthHeader = GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_GETCOLUMNWIDTH, $i, 0)
		EndIf
		; Set minimum if required
		If $iColWidth < $iMin_ColWidth And $iColWidthHeader < $iMin_ColWidth Then
			GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETCOLUMNWIDTH, $i, $iMin_ColWidth)
			$iColWidth = $iMin_ColWidth
		ElseIf $iColWidthHeader < $iColWidth Then
			GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETCOLUMNWIDTH, $i, $iColWidth)
		Else
			$iColWidth = $iColWidthHeader
		EndIf
}}}

to replace the following in Func _ArrayDisplay:


{{{
		; Set minimum if required
		If $iColWidth < $iMin_ColWidth Then
			GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETCOLUMNWIDTH, $i, $iMin_ColWidth)
			$iColWidth = $iMin_ColWidth
		EndIf
}}}

Notes:
""ListViewConstants.au3"" was included for $LVSCW_AUTOSIZE_USEHEADER
and the original authors & modifiers are:
; Author ........: randallc, Ultima
; Modified.......: Gary Frost (gafrost), Ultima, Zedna, jpm, Melba23, AZJIO, UEZ"	Feature Request	closed		Standard UDFs		None	Rejected	_ArrayDisplay, Headers, Truncated	
