- rect.x = dc.LogicalToDeviceX(-client.x);
- rect.width = client.width;
- rect.y = dc.LogicalToDeviceY(-client.y + item->GetY());
- rect.height = client.height;
+ CalcScrolledPosition(0, item->GetY(), &rect.x, &rect.y);
+ rect.width = client.x;
+ rect.height = client.y;