Announcement

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

    Simple alignment question

    I am trying to vertically align a textbox and a listgrid such that they are left aligned. The following code:

    VLayout vl = new VLayout();
    DynamicForm dynamicForm = new DynamicForm();
    dynamicForm.setFields(new TextItem("Test"));

    vl.addMember(dynamicForm, 0);
    vl.addMember(grid, 1);

    produced the attached image. Can you tell me what I'm doing wrong?

    Thanks,
    Ken
    Click image for larger version

Name:	Align.PNG
Views:	24
Size:	848 Bytes
ID:	239049

    #2
    Start by reading the Form Layout overview, and the Layout class docs, and also take a look at these components in the Watch tab of the Developer Console so you understand how big they are (the form and grid above in fact share a left edge, but that's evidently not what you meant by left-aligned).

    Comment

    Working...
    X