Anonymoose
Anonymoose

Reputation: 2471

Why is my sap.m.Page empty and footer is at top instead of bottom?

I made a very simple UI5 application with one Page with a footer. But the footer is being displayed at top of the page. I expect it to be sticky to the bottom of the page.

return new sap.m.Page({
  title: "test",
  content: oForm1,
  footer: new sap.m.Bar({/*...*/})
});

Also my form is not being displayed because the height of the form is zero pixels, although the content is there.

var oForm1 = new sap.ui.layout.form.Form("F1",{
  title: new sap.ui.core.Title({text: "(Un)Loading Checklist"}),
  layout: new sap.ui.layout.form.GridLayout(),
  formContainers: [
    new sap.ui.layout.form.FormContainer("F1C1", {
      title: "Person data",
      formElements: []
    })
  ]
});

Upvotes: 1

Views: 6335

Answers (1)

Serge
Serge

Reputation: 651

Embed the page into a sap.m.App control.

Example

Upvotes: 1

Related Questions