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

Challenge with order of events and functions

$
0
0

Hi everyone

 

I am new to UI5 and have stumbled over some funny challenges while trying to do a samle desktop application with Google Maps integration.

 

I created an app with 4 different view - wher one of the views hold my Google Maps content space (matrixlayout).

 

While making the app and view all the panels had default collapsed as false.

 

Now when I want to test the desktop app for real I set the collapse to true for all panels.

 

Then something weird happens with the Google maps. It is rendered wrong when I open the panel. When I create the view I register the current width of my panel and set my google maps to the same width. I tried displaying the alert with my registered width and all is fine but the render of the goole map object is wrong when my panel is collapsed as default.

 

I hope someone has any good suggestions to this.

 

I have already tried to use resize trigger of goole maps - but no matter where I put the code my map object is not available. Only when I do it inside the view controller in the onbefore or onafter render. but at this point the map has not been created yet!

 

Does anyone know where to find description of the flow of execution? When are the events of the view created and when are they available from the root html file and in what order?

 

Best regards,

Kell Vagtholm


Viewing all articles
Browse latest Browse all 6178

Trending Articles