Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    remove member from a container

    Hi,

    I have a canves (VLayout) and I added another VLayout (using addMember) into this container.

    I want to remove this member and add it as a child (In order to make the inner member overflow on the other members)

    Code:
    Code:
    // Creating the container
    VLayout content = new VLayout();
    content.setWidth100();
    content.setHeight100();
    
    VLayout firstMember = new VLayout();
    firstMember.setHeight(50);
    firstMember.setWidth100();
    
    VLayout secondMember = new VLayout();
    secondMember .setHeight(50);
    secondMember .setWidth100();
    
    content.addMember(firstMember );
    content.addMemeber(secondMember);
    addMember(content);

    Later in the code I have:
    Code:
    content.removeMemeber(firstMember);
    content.addChild(firstMember);
    I would expect it to behave as if I would perform content.addChild(firstMember);
    but it doesn't.

    Can someone help?

    Thanks,
    Yossi
Working...
X