Announcement

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

    HLayout.setLayoutAlign(Alignment.RIGHT) is placing members on the left?

    SmartClient Version: SNAPSHOT_v9.1d_2013-12-17/PowerEdition Deployment (built 2013-12-17)

    IE8

    For some reason this code
    Code:
            HLayout rightControlPanel = new HLayout();
            rightControlPanel.setLayoutAlign(Alignment.RIGHT);
            rightControlPanel.setHeight100();
            rightControlPanel.setWidth("20%");
            rightControlPanel.setPadding(0);
            rightControlPanel.setMembersMargin(7);
            rightControlPanel.setBackgroundColor("pink");
    
            Menu reportMenu = new Menu();
            MenuButton reportButton = new MenuButton("Reports", reportMenu);
            //reportButton.setLayoutAlign(Alignment.RIGHT);
            rightControlPanel.addMember(reportButton);
    places it's 1 member on the left top side of the HLayout? When I uncomment out the 2nd to last line, the member is still aligned on the left only this time it vertically aligns on the bottom?
    Last edited by JLivermore; 6 Feb 2014, 08:28. Reason: more detail

    #2
    I seem to be using the wrong API call, it works when I do

    Code:
    rightControlPanel.setAlign(Alignment.RIGHT);

    Comment

    Working...
    X