cancel
Showing results for 
Search instead for 
Did you mean: 

BorderLayout is not displaying through m.ScrollContainer

ipravir
Active Contributor
0 Kudos

Hi,

I am trying to display the information inside sap.m.ScrollContainer object. Used sap.ui.commons.layout.BorderLayout to maintained the information. But the contents are not displaying in output.

What could be the reason?

If i pass simple textarea / text / lable inside ScrollContainer, it's displaying fine, but for BorderLayout  it's not working.

I have also trying with Panel, it's displaying in output, but in very small place, even i have given height and width as "100%".

code:

var page = new sap.m.Page({

  title: "Title",});

  var mPanel = new sap.m.Panel({

  width : "100%",

  });

  var panel = new sap.ui.commons.Panel({

  Collapsed : false,

  showCollapseIcon : false,

  enabled : false,

  areaDesign : sap.ui.commons.enums.AreaDesign.Transparent,

  //borderDesign : sap.ui.commons.enums.BorderDesign.None,

  });

  var area = new sap.ui.commons.layout.BorderLayout({height: "100px",width : "100%"});

  var text1 = new sap.m.TextArea(

  {

  enabled : true,

  editable : false,

  height   : "100%",

  });

  text1.setValue("Information");

  var text2 = new sap.m.TextArea(

  {

  enabled : true,

  editable : false,

  height   : "100%",

  });

  text2.setValue("Information");

  area.setEnd(new sap.ui.commons.layout.BorderLayoutArea(

  {

  //size : "100%",

  contentAlign :   "right",

  content : text1

  }));

  panel.addContent(area);

  var scroll = new sap.m.ScrollContainer({

  width : '100%',

  height : '100%',

  });

  scroll.addContent(area);

  page.addContent(scroll);

  return page;

  }

Thanks

Praveer.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182862
Active Contributor
0 Kudos

Hi Praveer

You are mixing things much. Example. You use sap.m and sap.ui.commons.Panel.

ipravir
Active Contributor
0 Kudos

Hi Dennis,

If i leave sap.ui.commons.Panel object, Can it is possible to display sap.ui.commons.layout.BorderLayout objects inside sap.m.ScrollContainer or is there any control exist in sap.ui.commons, which can be in place of sap.m.ScrollContainer.

Please suggest.

Thanks & Regards,

Praveer.

ipravir
Active Contributor
0 Kudos

It's done,  I have used sap.ui.commons.layout.AbsoluteLayout.

Regards,

Praveer.