mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +01:00
Merge pull request #346 from mikeprimm/master
Fix autopan on chatballoons - always was on
This commit is contained in:
commit
f9958fbff8
@ -26,7 +26,7 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) {
|
|||||||
var popup = me.chatpopups[message.name];
|
var popup = me.chatpopups[message.name];
|
||||||
if (!popup) {
|
if (!popup) {
|
||||||
me.chatpopups[message.name] = popup = {
|
me.chatpopups[message.name] = popup = {
|
||||||
layer: new L.Popup({autopan: false, closeButton: false}),
|
layer: new L.Popup({autoPan: configuration.focuschatballoons, closeButton: false}),
|
||||||
content: $('<div/>').addClass('balloonmessages')[0]
|
content: $('<div/>').addClass('balloonmessages')[0]
|
||||||
};
|
};
|
||||||
popup.layer.setContent(popup.content);
|
popup.layer.setContent(popup.content);
|
||||||
|
Loading…
Reference in New Issue
Block a user