Hi,
I'm developing an application using the map widget and the map requires a second click to load completely. The map opens up in a dynamically added splitter pane after the user clicks on an adjacent listview row.
Currently, when the map opens up in the second pane, only a part of it is visible in the pane. Clicking on the map causes the entire widget to display correctly. The desired behaviour is that the map would load completely when triggered by the list vie select event.
Here's some sample code and an image is attached below. This code is from the listview change function.
var menuDiv = jQuery("<div id = 'mapControlMenu'></div>");
var mapDiv = jQuery("<div id='map'></div>");
this.mapcontrolmenu = new MapControlMenu(menuDiv);
this.gpsviewer = new GPSViewer(mapDiv);
var parentSplitter = self.element.parent("#splitter").data("kendoSplitter");
// append a 100px collapsible pane
var newPane = parentSplitter.append({
size: "50%",
collapsible: false,
min: "50%",
max: "50%"
});
newPane.append(menuDiv);
newPane.append(mapDiv);
Please advise.
Thanks!
Andre
I'm developing an application using the map widget and the map requires a second click to load completely. The map opens up in a dynamically added splitter pane after the user clicks on an adjacent listview row.
Currently, when the map opens up in the second pane, only a part of it is visible in the pane. Clicking on the map causes the entire widget to display correctly. The desired behaviour is that the map would load completely when triggered by the list vie select event.
Here's some sample code and an image is attached below. This code is from the listview change function.
var menuDiv = jQuery("<div id = 'mapControlMenu'></div>");
var mapDiv = jQuery("<div id='map'></div>");
this.mapcontrolmenu = new MapControlMenu(menuDiv);
this.gpsviewer = new GPSViewer(mapDiv);
var parentSplitter = self.element.parent("#splitter").data("kendoSplitter");
// append a 100px collapsible pane
var newPane = parentSplitter.append({
size: "50%",
collapsible: false,
min: "50%",
max: "50%"
});
newPane.append(menuDiv);
newPane.append(mapDiv);
Please advise.
Thanks!
Andre