Html “压抑时的怪异行为”;书签;SAPUI5中的按钮,Fiori

Html “压抑时的怪异行为”;书签;SAPUI5中的按钮,Fiori,html,sapui5,sap-fiori,Html,Sapui5,Sap Fiori,几天前,我成功地使用了标准Fiori应用程序MM_PO_APV中的“另存为磁贴”按钮: // Standard application buttons (Remove Forward) this.setHeaderFooterOptions({ oPositiveAction: { sI18nBtnTxt: that.resourceBundle.getText("XBUT_APPROVE"), onBtnPressed:

几天前,我成功地使用了标准Fiori应用程序MM_PO_APV中的“另存为磁贴”按钮:

// Standard application buttons (Remove Forward)
    this.setHeaderFooterOptions({
        oPositiveAction: {
            sI18nBtnTxt: that.resourceBundle.getText("XBUT_APPROVE"),
            onBtnPressed: jQuery.proxy(that.handleApprove, that)
        },
        oNegativeAction: {
            sI18nBtnTxt: that.resourceBundle.getText("XBUT_REJECT"),
            onBtnPressed: jQuery.proxy(that.handleReject, that)
        },
        onBack: jQuery.proxy(function() {
            //Check if a navigation to master is the previous entry in the history
            var sDir = sap.ui.core.routing.History.getInstance().getDirection(this.oRouter.getURL("master"));
            if (sDir === "Backwards") {
                window.history.go(-1);
            } else {
                //we came from somewhere else - create the master view
                this.oRouter.navTo("master");
            }
        }, this),
        // Remove the 'Save as Tile' button
        bSuppressBookmarkButton : true
    });
但是他们已经更新了SAPUI5版本,我认为是最新的,这带来了一个问题。按钮正在出现,但有一种奇怪的行为,如您所见:

我所有的代码都保持不变,正如我在文档API上看到的,它也保持不变

你能帮我解决这个问题吗

问候,

Andre

最可能的原因是UI5版本(您提到的最新更新)。 试试这两件事中的一件

  • 清除缓存并重新运行应用程序
  • 恢复到以前的UI5版本或更新到新版本
如果没有帮助,请联系相应的支持团队(我认为是脚手架团队)。

这应该可以:

//Prevent overflow button (...) in footer 
this.oApplicationImplementation.oDHFHelper.oCommonHeaderFooterHelper.bAutomaticOverflow = false;
将此代码放入控制器扩展的
onInit
方法中