Announcement

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

    AddMember setWitdh("%")

    Hi !

    I searched and I found nothing.

    I would like this :

    Code:
    |            | < size of page
    |     |        < size of layout
    |  |           < size of loginlayout
    |            |
    i have

    Code:
    layout = new Layout();
    layout.setWidth("50%");
    layout.setHeight("100%");
    layout.setBackgroundColor("#323941");
    
    Layout loginLayout = new Layout();
    loginLayout.setWidth("50%");
    loginLayout.setHeight("50%");
    loginLayout.setBackgroundColor("red");
    layout.addMember(loginLayout);
    
    layout.draw();
    If I use addChild loginLayout I have what I want but if i use addMember it doesn't work.

    But i can't use addChild because i would like used Alignement.CENTER


    I'm using chrome.


    Any help would be greatly appreciated.
Working...
X