Hi Folks,
I am trying to get a vizframe graph to render correctly inside an icontab - in a master-detail scenario. But it is not behaving as expected...
In trying to resolve the issue, i replicated Line-chart Vizframe example from "SAPUI5 Explored". The example utilizes the full height of the screen and adjust according to window resizing. But putting the sample into a view that is embedded in icontab, the SAP example starts to behave strangely too.
What i experience is the following:
- The graph is not rendered immediately the tab is selected. A small white "block" is displayed and i have to close and open the tab for the graph to appear. The configuration-controls are displayed correctly though.
- The graph is not utilizing the full height of the window but is only rendered at the FixFlex minimum size.
- Adjusting the width of the window causes the graph to rerender correctly, but adjusting the height of the window just enough to have it become smaller than the rendered graph causes the vizframe to flicker like crazy.
I can force it to render to full screen, by adding App+Page+Content tags around the FixFlex-container. But this too makes it behave strangely.
The graph wont flicker and it will resize correctly - but the height that it uses for rendering appears to be the height of the window without adjusting for the space that the detail-section takes up. This results in a graph that is actually higher than the window itself - meaning that i now have to scroll down to see the full graph.
I cant quite figure out what i am doing wrong - but something is off - either in my code or in the rendering of the graph in an icontab.
I hope someone has an idea on how to fix it.
Best regards
Brian