Author Topic: GuiScrollCtrl not recognizing size changes of a swatch inside it  (Read 383 times)

I have a GuiScrollCtrl, and I want its scrollbar to reflect the swatch inside of it.

Code: [Select]
new GuiScrollCtrl(ASE_ColorsetScroll)
{
    position = "100 32";
    extent = "205 130";
   
    profile = ColorScrollProfile;
   
    hScrollbar = "AlwaysOff";
    vScrollbar = "AlwaysOn";
   
    new GuiBitmapCtrl(ASE_ColorsetTransUnderlay)
    {
        position = "0 0";
        extent = "194 130";
       
        bitmap = "Add-Ons/Client_AvatarSaver/Images/Colorset Trans Underlay";
    };
   
    new GuiSwatchCtrl(ASE_ColorsetSwatch)
    {
        position = "0 0";
        extent = "194 130";
       
        color = "0 0 0 0";
    };
};

I have no idea what I'm doing horribly horribly wrong.
What am I doing horribly horribly wrong?

The guiscrollctrl should contain only one object which acts as a container for all the others

The guiscrollctrl should contain only one object which acts as a container for all the others

That fixed it; thanks!