shell - SAPUI5: Disable scrollbar for sap.ui.unified.ShellLayout -


i using sap.ui.unified.shelllayout toolbar @ top , sap.ui.core.componentcontainer underneath. content of component container exchanged on navigation while toolbar stays. unfortunately, whole shell (layout) has scrollbar although component container should have one.

how can disable scrolling shelllayout?

method init in view:

        sap.ui.unified.shelllayout.prototype.init.call(this);     var = this;      this.setheadervisible(false);      // action bar     this.otoolbar = new sap.m.toolbar({         transparent: true,         content: [             new sap.m.toolbarspacer(),             new sap.m.text({                 text: "elektronischer einkaufszettel"             }),             new sap.m.toolbarspacer()         ],         height: "3rem"     });     this.addcontent(this.otoolbar);      this.ocomponentcontainer = new sap.ui.core.componentcontainer({         name: 'router',         enablescrolling: true     });     this.addcontent(this.ocomponentcontainer);      this.oflexbox = new sap.m.flexbox({         alignitems: "start",         items: [             new sap.m.button({                 width: "100%",                 type: "transparent",                 icon: "sap-icon://product",                 class: "sapuismallmarginend",                 layoutdata: new sap.m.flexitemdata({                     growfactor: 1                 }),                 press: function(oevent) {                     var starget = "products";                     that.onbuttonclick(oevent, that, starget);                 }             }),             new sap.m.button({                 width: "100%",                 type: "emphasized",                 icon: "sap-icon://cart",                 class: "sapuismallmarginend",                 layoutdata: new sap.m.flexitemdata({                     growfactor: 1                 }),                 press: [that, "shoppermenu", that.onbuttonclick]             }),             new sap.m.button({                 width: "100%",                 type: "transparent",                 icon: "sap-icon://list",                 class: "sapuismallmarginend",                 layoutdata: new sap.m.flexitemdata({                     growfactor: 1                 }),                 press: [that, "requestermenu", that.onbuttonclick]             })         ]     });     this.addcontent(this.oflexbox); 

thanks

enter image description here

i found solution in using sap.ui.layout.fixflex control.

regards,

anton


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -