1
0
Fork 0

Phi: make make sure map widget has at least some height

This commit is contained in:
Torsten Dreyer 2015-02-25 09:35:23 +01:00
parent b522b818a5
commit 82e96ac757

View file

@ -22,11 +22,14 @@ define(
fgprop : 'heading' fgprop : 'heading'
}); });
if (params && params.css) if (params && params.css) {
for ( var p in params.css) { for ( var p in params.css) {
$(self.element).css(p, params.css[p]); $(self.element).css(p, params.css[p]);
} }
}
if ($(self.element).height() < 1) {
$(self.element).css("min-height", $(self.element).width());
}
self.map = leaflet.map(self.element).setView([ self.map = leaflet.map(self.element).setView([
53.5, 10.0 53.5, 10.0