Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

sap.m PageTitle causes Viz Chart not to load

$
0
0

Hello everyone,

 

i recently got an very annoying Problem. When I try to set an Title to an "sap.m.Page" my first Viz Chart on the Page dont get rendered on the first attempt.

 

Take a look:

 

This is my XML View Layout:

<mvc:View xmlns:mvc="sap.ui.core.mvc"    xmlns:core="sap.ui.core"   xmlns="sap.m"   xmlns:l="sap.ui.layout"   xmlns:viz="sap.viz.ui5"   controllerName="view.TimeSheet.Detail" xmlns:html="http://www.w3.org/1999/xhtml">  <Page   id="Detailpage_TimeSheet"  showNavButton="false" >  <content>  <l:VerticalLayout width="100%">  <Panel id="Panel_Zeiten" width="100%" expandable="true" expanded="true">  <headerToolbar>  <Toolbar>  <core:Icon src="sap-icon://pie-chart" />  <Text text="Überblick zu Tageszeiten" />  </Toolbar>  </headerToolbar>  <content>  <l:Grid  id="Grid_Charts"  defaultSpan="L12 M12 S12"  width="100%">  <l:content>    <viz:Bar   id="idVizBar"   width="100%" height="230px" />    <viz:Donut id="idVizDonut" width="100%" height="250px" />  </l:content>  </l:Grid>  </content>  </Panel>

so if you now try to set an Title.. (it doesnt care if set on Controller via ( this.getView().byId("Detailpage_TimeSheet").setTitle("myWonderfulTitle";

or via XML Attribut)

.. the Output looks like this:

Unbenannt.JPG

without the Title.. my Output looks like this:

Unbenannt.JPG

 

 

Has anyone an Idea what is causing this?!?!?! Im absoluty curious about this. I mean seriously? I set a Title and a VizChart is not rendered?

 

Thanks for your thoughts!

Sascha


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>