Phi: make make sure map widget has at least some height
This commit is contained in:
parent
b522b818a5
commit
82e96ac757
1 changed files with 5 additions and 2 deletions
|
@ -22,10 +22,13 @@ 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([
|
||||||
|
|
Loading…
Add table
Reference in a new issue