I had the impression that the clipposn is aligned at the the center of the clipsizen, so I calculate
Code: Select all
container.ClipWindowSize = button.Size * button.AbsoluteScale;
container.ClipWindowRelativePosition = button.Size * button.AbsoluteScale;
container.ClipWindowRelativePosition.X *= 0.5;
container.ClipWindowRelativePosition.Y *= -0.5;
(whole code)
However it seems to be off a certain amount (additionally dependent on the frame's position it appears to me).
If you take a look at my example at [maniaplanet]zockaml?demo=ripple[/maniaplanet] you will notice that
- it will cut off the frame when I move the cursor over it
- it will cut off a bit the side (left three buttons are clipped right, right buttons are clipped left, more clipping with a bigger distance to the middle)
Is this still some experimental feature or did I make false assumptions regarding the usage?