fix: wrong editor layout form
i still cant understand where the misconfiguration is but whatever
This commit is contained in:
parent
a656f87741
commit
3595da2004
3 changed files with 7 additions and 3 deletions
|
@ -51,7 +51,7 @@ public class CategoriesView extends Div implements BeforeEnterObserver {
|
|||
|
||||
public CategoriesView(CategoryService categoryService) {
|
||||
this.categoryService = categoryService;
|
||||
addClassNames("categories-view");
|
||||
addClassNames("expenses-view");
|
||||
|
||||
// Create UI
|
||||
SplitLayout splitLayout = new SplitLayout();
|
||||
|
|
|
@ -59,7 +59,7 @@ public class EventsView extends Div implements BeforeEnterObserver {
|
|||
public EventsView(EventService eventService, PersonService personService) {
|
||||
this.eventService = eventService;
|
||||
this.personService = personService;
|
||||
addClassNames("events-view");
|
||||
addClassNames("expenses-view");
|
||||
|
||||
// Create UI
|
||||
SplitLayout splitLayout = new SplitLayout();
|
||||
|
|
|
@ -58,7 +58,7 @@ public class PeopleView extends Div implements BeforeEnterObserver {
|
|||
|
||||
public PeopleView(PersonService personService) {
|
||||
this.personService = personService;
|
||||
addClassNames("people-view");
|
||||
addClassNames("expenses-view");
|
||||
|
||||
// Create UI
|
||||
SplitLayout splitLayout = new SplitLayout();
|
||||
|
@ -178,6 +178,10 @@ public class PeopleView extends Div implements BeforeEnterObserver {
|
|||
firstName = new TextField("First Name");
|
||||
lastName = new TextField("Last Name");
|
||||
email = new EmailField("Email");
|
||||
|
||||
// We set the maximum parallel columns to 1
|
||||
formLayout.setResponsiveSteps(new FormLayout.ResponsiveStep("0", 1));
|
||||
|
||||
formLayout.add(firstName, lastName, email);
|
||||
editorDiv.add(formLayout);
|
||||
createButtonLayout(editorLayoutDiv);
|
||||
|
|
Loading…
Reference in a new issue