﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
958	_ArrayDisplay - bad centering of window after adjust its width	Zedna	Gary	"Inside this function there is code for adjusting width of window according to columns width but after this adjusting window is not centered on the screen.

original code:

{{{
	; ajust window width
	$iWidth = 0
	For $i = 0 To $iSubMax + 1
		$iWidth += GUICtrlSendMsg($hListView, $_ARRAYCONSTANT_LVM_GETCOLUMNWIDTH, $i, 0)
	Next
	If $iWidth < 250 Then $iWidth = 230
	WinMove($hGUI, """", Default, Default, $iWidth + 20)

}}}

corrected code:

{{{
	; ajust window width
	$iWidth = 0
	For $i = 0 To $iSubMax + 1
		$iWidth += GUICtrlSendMsg($hListView, $_ARRAYCONSTANT_LVM_GETCOLUMNWIDTH, $i, 0)
	Next
	If $iWidth < 250 Then $iWidth = 230
	$iWidth += 20
	WinMove($hGUI, """", (@DesktopWidth - $iWidth)/2, Default, $iWidth)

}}}
"	Bug	closed	3.3.1.0	Standard UDFs	3.3.0.0	None	Fixed		
