How to disable letterboxing and adjust UI5 for the widescreen?

前端 未结 5 1002
礼貌的吻别
礼貌的吻别 2020-12-06 08:35

I have an UI5-based app (1.66+), which works correctly, but there are huge empty spaces on the left and right sides of the screen (aka letterboxing is on):

5条回答
  •  盖世英雄少女心
    2020-12-06 09:01

    You can achieve that removing the shell control from index.html:

    sap.ui.getCore().attachInit(function () {
        sap.ui.require(["sap/ui/core/ComponentContainer"], function (ComponentContainer) {
            new ComponentContainer({
                name: "yourProject",
                async: true,
                manifest: true,
                height: "100%"
    
            }).placeAt("content");
    
        });
    });
    

    instead of this:

    
    

提交回复
热议问题