diff --git a/xalia/Win32/HwndListViewCellProvider.cs b/xalia/Win32/HwndListViewCellProvider.cs index 3dfc74d..02f29e5 100644 --- a/xalia/Win32/HwndListViewCellProvider.cs +++ b/xalia/Win32/HwndListViewCellProvider.cs @@ -100,7 +100,10 @@ public override UiDomValue EvaluateIdentifier(UiDomElement element, string ident var header = ColumnHeader; if (!(header is null)) { - result = header.EvaluateIdentifier(identifier, Root, depends_on); + if (identifier == "win32_x") + result = header.EvaluateIdentifier("x", Root, depends_on); + else + result = header.EvaluateIdentifier("width", Root, depends_on); } } if (result is UiDomInt && Column == 0) // identifier == "win32_width" @@ -108,8 +111,8 @@ public override UiDomValue EvaluateIdentifier(UiDomElement element, string ident // Sometimes selectbounds spans multiple columns (wine bug?) Row.Element.EvaluateIdentifier("win32_selectbounds_x", Root, depends_on).TryToInt(out var sb_x); Row.Element.EvaluateIdentifier("win32_selectbounds_width", Root, depends_on).TryToInt(out var sb_width); - ColumnHeader.EvaluateIdentifier("win32_x", Root, depends_on).TryToInt(out var header_x); - ColumnHeader.EvaluateIdentifier("win32_width", Root, depends_on).TryToInt(out var header_width); + ColumnHeader.EvaluateIdentifier("x", Root, depends_on).TryToInt(out var header_x); + ColumnHeader.EvaluateIdentifier("width", Root, depends_on).TryToInt(out var header_width); return new UiDomInt(Math.Min(header_x + header_width - sb_x, sb_width)); } return result;