Hello,
i use the 2.4 version and have a design problem. At the box i have two items but at the list i can only see a spinner and - sometimes - only a part from one element. My Code:
And 3 error attatchments (first for forst click, second for second click and third for third click (and so on))
Thank you for help.
i use the 2.4 version and have a design problem. At the box i have two items but at the list i can only see a spinner and - sometimes - only a part from one element. My Code:
Code:
HLayout temp = new HLayout(); temp.setSize("100%", "40"); Label label = new Label(); label.setSize("50%", "35"); // temp.addMember(label); DynamicForm allgemein = new DynamicForm(); allgemein.setNumCols(1); allgemein.setSize("100%", "40"); allgemein.setTitleOrientation(TitleOrientation.TOP); raum = new ComboBoxItem("Raum"); //raum.setWidth(allgemein.getWidthAsString()); raum.setWidth(400); //raum.setHeight(50); raum.setAlign(Alignment.CENTER); raum.addChangedHandler(new ChangedHandler() { @Override public void onChanged(ChangedEvent event) { InitRaumData(); } }); allgemein.setFields(new FormItem[] { raum }); temp.addMember(allgemein); // temp.addMember(label); HLayout temp2 = new HLayout(); temp2.setSize("100%", "35"); temp2.addMember(label); suchen = new IButton(); suchen.setAutoFit(true); suchen.setTitle("Suchen"); details = new IButton(); details.setAutoFit(true); details.setTitle("Details"); details.addClickHandler(new ClickHandler() { AsyncCallback<Raum> callback = new AsyncCallback<Raum>() { @Override public void onSuccess(Raum result) { if(result != null){ new Details(result).show(); }else{ SC.say("Raumdaten konnten nicht geladen werden"); } } @Override public void onFailure(Throwable caught) { SC.say(caught.getLocalizedMessage()); } }; @Override public void onClick(ClickEvent event) { Attribute.async.GetRaumData(selected, "", callback); } }); bilder = new IButton(); bilder.setAutoFit(true); bilder.setTitle("Bilder"); dokumente = new IButton(); dokumente.setAutoFit(true); dokumente.setTitle("Dokumente"); temp2.setMembersMargin(5); temp2.addMember(suchen); temp2.addMember(details); temp2.addMember(bilder); temp2.addMember(dokumente); temp2.addMember(label); layout.addMember(temp); layout.addMember(temp2);
Thank you for help.
Comment