ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Clipping child controls to parent (https://www.esoui.com/forums/showthread.php?t=2208)

merlight 09/04/14 11:52 AM

Clipping child controls to parent
 
Is it possible?

I have a container control, with a background, and put some rows in it. Each row is created from a template with a label and a few icons. When a row is added/removed, the container needs to be resized. I started with resizeToFitDescendents, which worked fine. But now I want to animate the container's resizing. Problem is, if I show a newly added row before the resizing animation finishes, the row is outside the container. If I wait until resizing is done and then show the row, it's just weird. I'd like the container to "uncover" the new row as it grows.

merlight 09/04/14 11:57 AM

I'm stupid, probably had to write this down before thinking about where and how the game does it :) I'm now looking into Scroll control, hoping I can use that to achieve desired effect.

Seerah 09/04/14 03:48 PM

Yes. You need a scroll container.


All times are GMT -6. The time now is 07:07 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI