Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

fix leaflet rendering inside jquery ui tabs widget #1

Merged
merged 1 commit into from
Apr 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions geoposition/static/geoposition/leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ if (jQuery != undefined) {
$latitudeField.add($longitudeField).bind('keyup', function() {
setMarker(getLatLng());
});

// refresh map if inside jquery ui tabs widget and active tab changed
$container.parents('#tabs').on('tabsactivate', function() {
map.invalidateSize();
});
});
});
})(django.jQuery);