Thread Tools Display Modes
09/04/14, 11:52 AM   #1
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
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.
  Reply With Quote
09/04/14, 11:57 AM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
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.
  Reply With Quote
09/04/14, 03:48 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
Yes. You need a scroll container.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Clipping child controls to parent


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off