2017-03-01 1 views
0

私のindex.htmlなぜindex.html class = "... sapUiMedia-Std - ????" iphoneで

[class="sap-phone sapUiTheme-sap_belize sap-ios sapUiMedia-Std-Tablet sapUiMedia-StdExt-Tablet"] 

が、デモは

[class="sap-tablet sap-desktop sap-combi sapUiTheme-sap_belize sapUiMedia-Std-Phone sapUiMedia-StdExt-Phone"] 

なぜ私の "sapUiMedia-STD-タブレット" は "sapUiMedia-STD-電話" ではないでしょうか?ありますか

sap.ui.getCore().attachInit(function() { 
     new sap.tnt.ToolPage({ 
      header: new sap.tnt.ToolHeader("", { 
       content: [ 
        new sap.m.Button("", { 
         icon: "sap-icon://menu2", 
         type: sap.m.ButtonType.Transparent, 
         layoutData: new sap.m.OverflowToolbarLayoutData("", { 
          priority: sap.m.OverflowToolbarPriority.NeverOverflow 
         }), 
        }) 
       ] 
      }) 
     }).placeAt("content"); 
    }); 
+0

あなたは少し良くあなたの質問を説明できますか? ui5があなたのアプリをどのように認識しているかを知りたければ、コンソール開発ツールsap.ui.Device.systemで実行できます。 – Alan

答えて

0

問題が解決されたよりも、sap.m.Appをindex.htmlに追加しました。

sap.ui.getCore().attachInit(function() { 
     new sap.m.App({ 
      pages: new sap.tnt.ToolPage({ 
       header: new sap.tnt.ToolHeader("", { 
        content: [ 
         new sap.m.Button("", { 
          icon: "sap-icon://menu2", 
          type: sap.m.ButtonType.Transparent, 
          layoutData: new sap.m.OverflowToolbarLayoutData(
           "", { 
            priority: sap.m.OverflowToolbarPriority 
             .NeverOverflow 
           }), 
         }) 
        ] 
       }), 
       sideContent: new sap.tnt.SideNavigation("", { 
        item: new sap.tnt.NavigationList() 
       }) 
      }) 
     }).placeAt("content"); 
    }); 

effects

関連する問題