Clipping in DIconLayout

I made a dragndrop inventory, but I can’t fix this clipping issue:

https://dl.dropboxusercontent.com/u/4764969/damnclipping.PNG

Any ideas ?

In the clientside model’s draw function, use a scissor rectangle set to the bounds of the DIconLayout.

[lua]
function model:Draw()
render.SetScissorRect(xstart,ystart,xend,yend,true)
self:DrawModel()
render.SetScissorRect(xstart,ystart,xend,yend,false)
end
[/lua]

Note that it really is x1y1 to x2y2, and not parameters for width and height.

I might try that, but got any non-radical way ?

There’s no other way.

Awww…