Announcement

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

    Alignment problem of form items in IE Quirks mode

    Hi Isomorphic
    I have an alignment problem with IE9 Quirks mode the textAreaItem is not aligned with other item .
    But in IE standards mode its work fine and also FF works fine !! see the attachments.
    Please help

    here the code:


    Code:
     
    
    public class SampleProject3_0 implements EntryPoint {
    
    	public void onModuleLoad() {
    
    		VLayout layout = new VLayout(); 
    		layout.setWidth100();
    		layout.setHeight100();
    		layout.setBackgroundColor("#474747");
    
    		TextItem jobNameItem= new TextItem();
    		jobNameItem.setDefaultValue("jobs");
    		jobNameItem.setTitle("Type");
    		jobNameItem.setWidth("*"); 
    		jobNameItem.setEndRow(true);
    		
    		
    		TextItem processorNameItem = new TextItem();
    		processorNameItem.setTitle("namee");
    		processorNameItem.setWidth("*"); 
    		processorNameItem.setRequired(true);
    		
    		TextAreaItem descriptionItem = new TextAreaItem();
    		descriptionItem.setTitle("Description");
    		descriptionItem.setWidth("*"); 
    		descriptionItem.setTitleOrientation(TitleOrientation.TOP);
    		descriptionItem.setTitleColSpan(2);
    		descriptionItem.setColSpan(2);
    		descriptionItem.setEndRow(true);
    		
    		DynamicForm form = new DynamicForm();
    		form.setSize("100%", "100%");
    		form.setCellPadding(4);
    		form.setColWidths("50%", "50%"); 
    		form.setWrapItemTitles(true);
    		form.setBorder("1px solid red");
    
    		
    		form.setItems( jobNameItem,descriptionItem,processorNameItem);
    
    		VLayout layout2 = new VLayout(); 
    		layout2.setSize("600px", "600px");
    		
    		layout2.setBackgroundColor("#474747");
    		layout2.addMember(form);
    		layout.addMember(layout2);
    		layout.draw();
    		
    		}
    }
    Attached Files

    #2
    Hi ,
    I found a solution !
    form.setFixedColWidths(true);
    and it work fine.
    Thanks

    Comment

    Working...
    X