Skip to Content
0
Former Member
Mar 14, 2015 at 11:00 AM

sap.m PageTitle causes Viz Chart not to load

14 Views

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:

without the Title.. my Output looks like this:

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

Attachments

Unbenannt.JPG (26.8 kB)
Unbenannt.JPG (36.5 kB)