comctl32: Set the item size after LISTVIEW_ScrollColumns().

LISTVIEW_ScrollColumns() increments the item width by the scroll
delta, so we need the original width to still be present.
This commit is contained in:
Huw Davies 2015-09-07 13:51:11 +01:00 committed by Alexandre Julliard
parent 07cc9a34a8
commit 4f06425a03
1 changed files with 1 additions and 1 deletions

View File

@ -5674,11 +5674,11 @@ static BOOL LISTVIEW_DeleteColumn(LISTVIEW_INFO *infoPtr, INT nColumn)
}
/* update the other column info */
LISTVIEW_UpdateItemSize(infoPtr);
if(DPA_GetPtrCount(infoPtr->hdpaColumns) == 0)
LISTVIEW_InvalidateList(infoPtr);
else
LISTVIEW_ScrollColumns(infoPtr, nColumn, -(rcCol.right - rcCol.left));
LISTVIEW_UpdateItemSize(infoPtr);
return TRUE;
}