我正在尝试将页面添加到IconTabFilter中,我得到了,但只有标题投影在屏幕上。
IconTab视图:
createContent : function(oController) {
var oPage = new sap.m.Page({title: "IconTab",showHeader: false});
var oIconTab = new sap.m.IconTabBar ("idTabBar",{});
var itemBar1 = new sap.m.IconTabFilter({
key:"tab1",
icon:"sap-icon://database",
content:[ new sap.ui.view({id:"idTabIcon",viewName:"prova5.tabIcon1", type:sap.ui.core.mvc.ViewType.JS})
]
})
oIconTab.addItem(itemBar3);
oPage.addContent(oIconTab);
return oPage;
}IconTabFilter视图的内容:
createContent : function(oController) {
var oPage = new sap.m.Page({
title: "Icon Tab Page 1",
showNavButton: true,
navButtonPress: oController.navButtonMethod
});
var obutton = new sap.m.Button({text: "hello"});
oPage.addContent(obutton);
return oPage;
}有什么解决方案吗?
发布于 2014-12-08 18:49:44
当在视图中使用sap.m.Page作为createContent函数的返回值时,就会出现这个问题。如果在视图中使用sap.m.Page对于您的目的不是必需的,请尝试返回另一个控件(例如sap.m.FlexBox)。这为我解决了问题。
发布于 2014-12-04 13:32:27
尝试检查元素并找出div,在".sapMITBContent“类中,在像素中添加大约500px的高度,您将使页面可见。
https://stackoverflow.com/questions/27277740
复制相似问题