我正在开发应用程序[SAPUI5]。它是基于主要细节的Application.I我在Internet Explorer中面临问题,同时最大化窗口大小,我的页面内容不会变成原始大小。
var resizeListener = function(){
$(window).one("resize",function(){ //unbinds itself every time it fires
if(scroll_ID != undefined){
var footerHeight = window.innerHeight - thatDetail.byId("SplitMasterFooterid").getDomRef().getBoundingClientRect().top;
var tablePositionTop = thatDetail.byId(scroll_ID).getDomRef().getBoundingClientRect().top;
var scrollHeight = window.innerHeight - footerHeight - tablePositionTop - 20;
thatDetail.byId(scroll_ID).setHeight(String(scrollHeight + "px"));
}
//resize things
setTimeout(resizeListener,100); //rebinds itself after 100ms
});
}
resizeListener();
谢谢。请帮我解决这个问题