I inlcuded a map in my web app UI (<HBox> is similar to <div> in html):
<HBox id="map" fitContainer="true" justifyContent="Center" alignItems="Center" width="100%" height="80%" />
When the window is drawn the map is only rendered in the top right corner and also the copyright information in the bottom right corner is not displayed. The mapquest logo and terms link is displayed.
When I resize the window. Everything is drawn correctly. Any idea how I could fix this problem?
P.S: I found that if I check the size of the map with map.getSize(), I get a size of (0,0) before resizing the window. After resize the map has a size.