Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

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

$
0
0
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?

Viewing all articles
Browse latest Browse all 4756

Trending Articles