PDA

View Full Version : Google Maps and context menu



nbourdeau
7 Sep 2013, 8:31 AM
Hi,

I am a creating a small app with ExtJS and Google Maps.
I am catching a right click event on a marker with google and want to display a Ext
The Google map container is in a Viewport.

When I call showAt(x,y), the menu doesn't show, no errors and I see scroll bars appearing ...
Any idea what is wrong ?



markerMenu: function(event) {
console.log(event);
var m = Ext.widget('menu', {
floating: true,
items: [{
text: 'Remove point',
handler: function() {
alert('TODO!');
}
}]
});
m.showAt(event.Xa.x, event.Xa.y);
}

nbourdeau
8 Sep 2013, 4:26 AM
ok nervermind. I simply forgot to include the Ext css ... probably need some sleep ...