Commit 5925d6a6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

submap opens over top map div

parent 34895538
......@@ -62,11 +62,18 @@ Submap.prototype.open = function(htmlTag) {
mapDiv.style.height = "100%";
contentDiv.appendChild(mapDiv);
$(self.htmlTag).dialog("open");
$(self.htmlTag).dialog('option', 'title', self.getModel().getName());
$(self.htmlTag).dialog({
title : self.getModel().getName(),
width : Math.floor(window.innerWidth * 2 / 3),
height : Math.floor(window.innerHeight * 2 / 3),
position : {
my : "center",
at : "center",
of : $(self.getTopMap().getElement()),
},
});
$(self.htmlTag).dialog("option", "width", Math.floor(window.innerWidth * 2 / 3));
$(self.htmlTag).dialog("option", "height", Math.floor(window.innerHeight * 2 / 3));
$(self.htmlTag).dialog("open");
self.setGoogleMap(new google.maps.Map(mapDiv, mapOptions));
self._createMapChangedCallbacks();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment